]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/mac80211/cfg.c
mac80211: implement STA CSA for drivers using channel contexts
[karo-tx-linux.git] / net / mac80211 / cfg.c
index b455e7264f4f6b35a60a6be1999daed88c54004f..ac28af74a41410abceed9884a9388d9cb37784cb 100644 (file)
@@ -2871,6 +2871,11 @@ void ieee80211_csa_finalize_work(struct work_struct *work)
        if (WARN_ON(err < 0))
                return;
 
+       if (!local->use_chanctx) {
+               local->_oper_chandef = local->csa_chandef;
+               ieee80211_hw_config(local, 0);
+       }
+
        ieee80211_bss_info_change_notify(sdata, changed);
 
        switch (sdata->vif.type) {