]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ath9k: use new FIF_PSPOLL configure filter
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 4 Aug 2009 17:05:30 +0000 (10:05 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:12:39 +0000 (09:12 -0400)
We used to set pspoll filter on ath9k on AP mode but
we no longer need this mode specific check as mac80211
now does the check for us and informs us when we should
enable pspoll through FIF_PSPOLL.

Cc: Igor Perminov <igor.perminov@inbox.ru>
Cc: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c

index 61edfab20ffc038a52ee9c6833e86b11b443500e..6b07cedf5b788857d40167067858f313db072102 100644 (file)
@@ -448,8 +448,7 @@ u32 ath_calcrxfilter(struct ath_softc *sc)
        else
                rfilt |= ATH9K_RX_FILTER_BEACON;
 
-       /* If in HOSTAP mode, want to enable reception of PSPOLL frames */
-       if (sc->sc_ah->opmode == NL80211_IFTYPE_AP)
+       if (sc->rx.rxfilter & FIF_PSPOLL)
                rfilt |= ATH9K_RX_FILTER_PSPOLL;
 
        if (sc->sec_wiphy) {