From: Luis R. Rodriguez Date: Tue, 4 Aug 2009 17:05:30 +0000 (-0700) Subject: ath9k: use new FIF_PSPOLL configure filter X-Git-Tag: MMI-PSA29.97-13-9~26976^2~367^2~139 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63b08b8d97a2a5ff23436cd52e8cd70c1de0319c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath9k: use new FIF_PSPOLL configure filter 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 Cc: Jouni Malinen Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 61edfab20ffc..6b07cedf5b78 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -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) {