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

Commit f3771c08 authored by Janusz.Dziedzic@tieto.com's avatar Janusz.Dziedzic@tieto.com Committed by Kalle Valo
Browse files

ath9k: setup rxfilter for all chanctx



While mac80211 setup this per HW, set same
rxfilter configuration for all chanctx.

Signed-off-by: default avatarJanusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent d83520b7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1459,13 +1459,15 @@ static void ath9k_configure_filter(struct ieee80211_hw *hw,
				   u64 multicast)
{
	struct ath_softc *sc = hw->priv;
	struct ath_chanctx *ctx;
	u32 rfilt;

	changed_flags &= SUPPORTED_FILTERS;
	*total_flags &= SUPPORTED_FILTERS;

	spin_lock_bh(&sc->chan_lock);
	sc->cur_chan->rxfilter = *total_flags;
	ath_for_each_chanctx(sc, ctx)
		ctx->rxfilter = *total_flags;
	spin_unlock_bh(&sc->chan_lock);

	ath9k_ps_wakeup(sc);