diff options
author | Kalle Valo <Janusz.Dziedzic@tieto.com> | 2015-11-27 09:37:14 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-01-26 16:47:38 +0200 |
commit | b9a9693fd9aea43f50b107dfc8cbaea317f95a79 (patch) | |
tree | 8c257da20681c1dce91689cd9c10ede319a3d1d7 /drivers/net/wireless/ath/ath9k/main.c | |
parent | 8b019fb0d0e75e2f682f17742b99c0ca970ca024 (diff) | |
download | linux-stable-b9a9693fd9aea43f50b107dfc8cbaea317f95a79.tar.gz linux-stable-b9a9693fd9aea43f50b107dfc8cbaea317f95a79.tar.bz2 linux-stable-b9a9693fd9aea43f50b107dfc8cbaea317f95a79.zip |
ath9k: request NOA update when chanctx active
Request NOA update when chanctx active, also in case
of STA.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index c1b33fdcca08..4ae63fd4290e 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -978,7 +978,7 @@ static void ath9k_update_bssid_mask(struct ath_softc *sc, if (ctx->nvifs_assigned != 1) continue; - if (!avp->vif->p2p || !iter_data->has_hw_macaddr) + if (!iter_data->has_hw_macaddr) continue; ether_addr_copy(common->curbssid, avp->bssid); @@ -1255,6 +1255,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type); sc->cur_chan->nvifs++; + if (vif->type == NL80211_IFTYPE_STATION && ath9k_is_chanctx_enabled()) + vif->driver_flags |= IEEE80211_VIF_GET_NOA_UPDATE; + if (ath9k_uses_beacons(vif->type)) ath9k_beacon_assign_slot(sc, vif); |