enable rx of control frames when in monitor mode

Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
MFC after:	1 week
This commit is contained in:
Sam Leffler 2006-06-26 04:31:36 +00:00
parent 09e19031ab
commit 6f48c95642

View file

@ -1699,6 +1699,8 @@ ath_key_update_end(struct ieee80211com *ic)
* - when operating in station mode for collecting rssi data when
* the station is otherwise quiet, or
* - when scanning
* o accept control frames:
* - when in monitor mode
*/
static u_int32_t
ath_calcrxfilter(struct ath_softc *sc, enum ieee80211_state state)
@ -1720,6 +1722,8 @@ ath_calcrxfilter(struct ath_softc *sc, enum ieee80211_state state)
ic->ic_opmode == IEEE80211_M_IBSS ||
state == IEEE80211_S_SCAN)
rfilt |= HAL_RX_FILTER_BEACON;
if (ic->ic_opmode == IEEE80211_M_MONITOR)
rfilt |= HAL_RX_FILTER_CONTROL;
return rfilt;
#undef RX_FILTER_PRESERVE
}