diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-06-14 17:51:44 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-06-14 17:51:44 +0000 |
commit | fc41da518eb2130c413c78a81229d72829090caf (patch) | |
tree | 8da50aa39d113d5f9f8bc5d386f51f1e6a50f31b /sys/net80211 | |
parent | 90f0e6d3922ff873babd84fbd427fe7c47b1c789 (diff) |
fix my previous commit, i forgot BIP, so instead of enumerating
what is not supported as a group cipher, enumerate what is supported.
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index cb8082543b8..60508a63de4 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.c,v 1.58 2010/06/14 17:39:20 damien Exp $ */ +/* $OpenBSD: ieee80211_node.c,v 1.59 2010/06/14 17:51:43 damien Exp $ */ /* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */ /*- @@ -439,8 +439,10 @@ ieee80211_match_bss(struct ieee80211com *ic, struct ieee80211_node *ni) if (!(ic->ic_flags & IEEE80211_F_PSK)) fail |= 0x40; } - if (ni->ni_rsngroupcipher == IEEE80211_CIPHER_NONE || - ni->ni_rsngroupcipher == IEEE80211_CIPHER_USEGROUP) + if (ni->ni_rsngroupcipher != IEEE80211_CIPHER_WEP40 && + ni->ni_rsngroupcipher != IEEE80211_CIPHER_TKIP && + ni->ni_rsngroupcipher != IEEE80211_CIPHER_CCMP && + ni->ni_rsngroupcipher != IEEE80211_CIPHER_WEP104) fail |= 0x40; if ((ni->ni_rsnciphers & ic->ic_rsnciphers) == 0) fail |= 0x40; |