summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-07-10 01:00:00 +0000
committersam <sam@FreeBSD.org>2006-07-10 01:00:00 +0000
commit8b737c60fd441fddaa5e8f0370d3ea63aa46fa22 (patch)
tree08ab9af5ede9733aa8e433af66cc5837266c3342 /sys
parent9473b5aa1e5592d811565517bf1da50f7fc7c883 (diff)
downloadFreeBSD-src-8b737c60fd441fddaa5e8f0370d3ea63aa46fa22.zip
FreeBSD-src-8b737c60fd441fddaa5e8f0370d3ea63aa46fa22.tar.gz
MFC 1.149: enable rx of control frames when in monitor mode
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/if_ath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 7bdcb9b..49a2f79 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -1694,6 +1694,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)
@@ -1715,6 +1717,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
}
OpenPOWER on IntegriCloud