diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2009-09-18 05:36:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:39 -0400 |
commit | 66afad0156a0b673688f309147e57c3a85541329 (patch) | |
tree | 10881d8a7d488bb81e051dbea3d1bb2034fd83b3 /drivers/net/wireless/ath/ath9k/recv.c | |
parent | 7aa034928392f16d48c536b315575e2dcfa53252 (diff) |
ath9k: Allow PSPOLL only when the interface is configured in AP mode
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 3a2204d84702..c880a55939bf 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
@@ -423,7 +423,10 @@ u32 ath_calcrxfilter(struct ath_softc *sc) | |||
423 | else | 423 | else |
424 | rfilt |= ATH9K_RX_FILTER_BEACON; | 424 | rfilt |= ATH9K_RX_FILTER_BEACON; |
425 | 425 | ||
426 | if (sc->rx.rxfilter & FIF_PSPOLL) | 426 | if ((AR_SREV_9280_10_OR_LATER(sc->sc_ah) || |
427 | AR_SREV_9285_10_OR_LATER(sc->sc_ah)) && | ||
428 | (sc->sc_ah->opmode == NL80211_IFTYPE_AP) && | ||
429 | (sc->rx.rxfilter & FIF_PSPOLL)) | ||
427 | rfilt |= ATH9K_RX_FILTER_PSPOLL; | 430 | rfilt |= ATH9K_RX_FILTER_PSPOLL; |
428 | 431 | ||
429 | if (conf_is_ht(&sc->hw->conf)) | 432 | if (conf_is_ht(&sc->hw->conf)) |