]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ath9k: request NOA update when chanctx active
authorKalle Valo <Janusz.Dziedzic@tieto.com>
Fri, 27 Nov 2015 08:37:14 +0000 (09:37 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 26 Jan 2016 14:47:38 +0000 (16:47 +0200)
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>
drivers/net/wireless/ath/ath9k/channel.c
drivers/net/wireless/ath/ath9k/main.c

index 50e614b915f1b1b5b19835ddbe3fd156a6c15d5d..0bcb82abd09494d459be2ffa99ae7b4c6c121011 100644 (file)
@@ -1454,7 +1454,7 @@ static void ath9k_update_p2p_ps(struct ath_softc *sc, struct ieee80211_vif *vif)
        if (!sc->p2p_ps_timer)
                return;
 
-       if (vif->type != NL80211_IFTYPE_STATION || !vif->p2p)
+       if (vif->type != NL80211_IFTYPE_STATION)
                return;
 
        sc->p2p_ps_vif = avp;
index c1b33fdcca0875a20cd2be3b54b21e46c37b725c..4ae63fd4290e067d42feb02461ced5328e944f98 100644 (file)
@@ -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);