summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath9k/recv.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2009-02-19 15:41:52 +0530
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:52:47 -0500
commitdbaaa147d6396c41d8f31156a777dfdaae2335a4 (patch)
treef45301a6f6b2ca0e25437abbe3a252174ab3d981 /drivers/net/wireless/ath9k/recv.c
parent96891ceedaeaac95aa5b9dba5e68a8e77d541e78 (diff)
downloadlwn-dbaaa147d6396c41d8f31156a777dfdaae2335a4.tar.gz
lwn-dbaaa147d6396c41d8f31156a777dfdaae2335a4.zip
ath9k: Filter out beacons from other BSS in STA mode
Passing beacons received from other BSS to s/w in non-scanning state is unnecessary in STA mode. This patch filters them out in h/w. Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath9k/recv.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c
index 28ad1d5af129..23b6f54cde5c 100644
--- a/drivers/net/wireless/ath9k/recv.c
+++ b/drivers/net/wireless/ath9k/recv.c
@@ -375,14 +375,15 @@ u32 ath_calcrxfilter(struct ath_softc *sc)
if (sc->rx.rxfilter & FIF_CONTROL)
rfilt |= ATH9K_RX_FILTER_CONTROL;
- if (sc->sc_ah->opmode == NL80211_IFTYPE_STATION ||
- sc->sc_ah->opmode == NL80211_IFTYPE_ADHOC)
+ if ((sc->sc_ah->opmode == NL80211_IFTYPE_STATION) &&
+ !(sc->rx.rxfilter & FIF_BCN_PRBRESP_PROMISC))
+ rfilt |= ATH9K_RX_FILTER_MYBEACON;
+ else
rfilt |= ATH9K_RX_FILTER_BEACON;
- /* If in HOSTAP mode, want to enable reception of PSPOLL frames
- & beacon frames */
+ /* If in HOSTAP mode, want to enable reception of PSPOLL frames */
if (sc->sc_ah->opmode == NL80211_IFTYPE_AP)
- rfilt |= (ATH9K_RX_FILTER_BEACON | ATH9K_RX_FILTER_PSPOLL);
+ rfilt |= ATH9K_RX_FILTER_PSPOLL;
return rfilt;