revert 1.133 and part of 1.131
authorphessler <phessler@openbsd.org>
Fri, 3 Aug 2018 10:52:45 +0000 (10:52 +0000)
committerphessler <phessler@openbsd.org>
Fri, 3 Aug 2018 10:52:45 +0000 (10:52 +0000)
the stack doesn't always fill in the paramaters correctly

reported by many

sys/net80211/ieee80211_node.c

index 5e58ae9..d4561bf 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ieee80211_node.c,v 1.135 2018/07/30 11:09:17 stsp Exp $       */
+/*     $OpenBSD: ieee80211_node.c,v 1.136 2018/08/03 10:52:45 phessler Exp $   */
 /*     $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $       */
 
 /*-
@@ -389,13 +389,6 @@ ieee80211_match_ess(struct ieee80211com *ic)
                                        continue;
                        }
 
-                       if ((ess->rsnprotos & ni->ni_rsnprotos) == 0)
-                               continue;
-                       if ((ess->rsnakms & ni->ni_rsnakms) == 0)
-                               continue;
-                       if ((ess->rsnciphers & ni->ni_rsnciphers) == 0)
-                               continue;
-
                        if ((ic->ic_flags & IEEE80211_F_DESBSSID) &&
                            !IEEE80211_ADDR_EQ(ic->ic_des_bssid, ni->ni_bssid))
                                continue;