From 6495462157d01b64d30e761bbfef7f90e26f3e50 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 18 Jan 2005 20:07:44 +0000 Subject: [PATCH] correct logic that caused beacon frames received in ibss mode to be discarded when not scanning --- sys/net80211/ieee80211_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 3215ed941a74..24aec7dc4581 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; }