Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d42c6b71 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Handle mac80211's FIF_CONTROL flag properly

parent 254ad0ff
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -372,6 +372,9 @@ u32 ath_calcrxfilter(struct ath_softc *sc)
		rfilt &= ~ATH9K_RX_FILTER_UCAST;
		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 ||
	if (sc->sc_ah->ah_opmode == NL80211_IFTYPE_STATION ||
	    sc->sc_ah->ah_opmode == NL80211_IFTYPE_ADHOC)
	    sc->sc_ah->ah_opmode == NL80211_IFTYPE_ADHOC)
		rfilt |= ATH9K_RX_FILTER_BEACON;
		rfilt |= ATH9K_RX_FILTER_BEACON;