ath9k: enable control frame reception
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Tue, 16 Sep 2014 00:13:13 +0000 (02:13 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Sep 2014 20:18:39 +0000 (16:18 -0400)
Set control frame bit in rx filter if dynack processing has been activated
in order to enable ACK frame reception

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c

index 66c5fe81a03543b30c67534832b76d40e30ac254..42108f06825e2804461342fcea67bce1e8f6be94 100644 (file)
@@ -400,7 +400,8 @@ u32 ath_calcrxfilter(struct ath_softc *sc)
        if (sc->sc_ah->is_monitoring)
                rfilt |= ATH9K_RX_FILTER_PROM;
 
-       if (sc->cur_chan->rxfilter & FIF_CONTROL)
+       if ((sc->cur_chan->rxfilter & FIF_CONTROL) ||
+           sc->sc_ah->dynack.enabled)
                rfilt |= ATH9K_RX_FILTER_CONTROL;
 
        if ((sc->sc_ah->opmode == NL80211_IFTYPE_STATION) &&