ath9k: setup rxfilter for all chanctx
While mac80211 setup this per HW, set same rxfilter configuration for all chanctx. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
d83520b7cd
commit
f3771c0828
1 changed files with 3 additions and 1 deletions
|
@ -1459,13 +1459,15 @@ static void ath9k_configure_filter(struct ieee80211_hw *hw,
|
||||||
u64 multicast)
|
u64 multicast)
|
||||||
{
|
{
|
||||||
struct ath_softc *sc = hw->priv;
|
struct ath_softc *sc = hw->priv;
|
||||||
|
struct ath_chanctx *ctx;
|
||||||
u32 rfilt;
|
u32 rfilt;
|
||||||
|
|
||||||
changed_flags &= SUPPORTED_FILTERS;
|
changed_flags &= SUPPORTED_FILTERS;
|
||||||
*total_flags &= SUPPORTED_FILTERS;
|
*total_flags &= SUPPORTED_FILTERS;
|
||||||
|
|
||||||
spin_lock_bh(&sc->chan_lock);
|
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);
|
spin_unlock_bh(&sc->chan_lock);
|
||||||
|
|
||||||
ath9k_ps_wakeup(sc);
|
ath9k_ps_wakeup(sc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue