mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
09e19031ab
commit
6f48c95642
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue