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; }