summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-01-18 20:07:44 +0000
committersam <sam@FreeBSD.org>2005-01-18 20:07:44 +0000
commit6495462157d01b64d30e761bbfef7f90e26f3e50 (patch)
treec4777983b281aca1abcd915649b6f472af5a1976 /sys/net80211
parent07d33c069ac26ddc075f990d772216a982bce037 (diff)
downloadFreeBSD-src-6495462157d01b64d30e761bbfef7f90e26f3e50.zip
FreeBSD-src-6495462157d01b64d30e761bbfef7f90e26f3e50.tar.gz
correct logic that caused beacon frames received in ibss mode to be
discarded when not scanning
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c
index 3215ed9..24aec7d 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1693,7 +1693,7 @@ ieee80211_recv_mgmt(struct ieee80211com *ic, struct mbuf *m0,
*/
if (!((ic->ic_flags & IEEE80211_F_SCAN) ||
(ic->ic_opmode == IEEE80211_M_STA && ni->ni_associd) ||
- ic->ic_opmode != IEEE80211_M_IBSS)) {
+ ic->ic_opmode == IEEE80211_M_IBSS)) {
ic->ic_stats.is_rx_mgtdiscard++;
return;
}
OpenPOWER on IntegriCloud