summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2018-10-27 09:47:37 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2018-10-27 09:47:37 +0000
commit2e545618f094f8bac4a65ec6f65462deb8101ebe (patch)
tree56b15181d9319f664f0448fcde6c4cf301055faa /sys/net80211
parent3548d9ad86d112ba595cc5168d88c87f3fdbf0e5 (diff)
don't join to a network where we expect cleartext, and the AP is using crypto
OK stsp@
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_node.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 1353eaa04a2..d7b941cf9c6 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.c,v 1.152 2018/09/18 06:36:18 mestre Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.153 2018/10/27 09:47:36 phessler Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
@@ -523,6 +523,9 @@ ieee80211_match_ess(struct ieee80211_ess *ess, struct ieee80211_node *ni)
} else if (ess->flags & IEEE80211_F_WEPON) {
if ((ni->ni_capinfo & IEEE80211_CAPINFO_PRIVACY) == 0)
return 0;
+ } else {
+ if ((ni->ni_capinfo & IEEE80211_CAPINFO_PRIVACY) != 0)
+ return 0;
}
return 1;