From 2e545618f094f8bac4a65ec6f65462deb8101ebe Mon Sep 17 00:00:00 2001 From: Peter Hessler Date: Sat, 27 Oct 2018 09:47:37 +0000 Subject: don't join to a network where we expect cleartext, and the AP is using crypto OK stsp@ --- sys/net80211/ieee80211_node.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/net80211') 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; -- cgit v1.2.3