From: Sujith Date: Wed, 4 Feb 2009 02:40:22 +0000 (+0530) Subject: ath9k: Handle mac80211's FIF_CONTROL flag properly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d42c6b71a8e722e00a302e7e3365909560de478a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ath9k: Handle mac80211's FIF_CONTROL flag properly Signed-off-by: Sujith Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c index 8da08f9b463c..630fa57f14ed 100644 --- a/drivers/net/wireless/ath9k/recv.c +++ b/drivers/net/wireless/ath9k/recv.c @@ -372,6 +372,9 @@ u32 ath_calcrxfilter(struct ath_softc *sc) rfilt &= ~ATH9K_RX_FILTER_UCAST; } + if (sc->rx.rxfilter & FIF_CONTROL) + rfilt |= ATH9K_RX_FILTER_CONTROL; + if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_STATION || sc->sc_ah->ah_opmode == NL80211_IFTYPE_ADHOC) rfilt |= ATH9K_RX_FILTER_BEACON;