]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wcn36xx: Delete BSS before idling link
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 19 Apr 2016 05:00:54 +0000 (22:00 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Apr 2016 17:37:06 +0000 (20:37 +0300)
When disabling the beacon we must delete the bss before idling the link.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wcn36xx/main.c

index c0ba7b0775b38632c29ed31941304dc68a9b4275..680217506b3d2d319c3969884039074ecbc67289 100644 (file)
@@ -779,9 +779,9 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw,
                        wcn36xx_smd_set_link_st(wcn, vif->addr, vif->addr,
                                                link_state);
                } else {
+                       wcn36xx_smd_delete_bss(wcn, vif);
                        wcn36xx_smd_set_link_st(wcn, vif->addr, vif->addr,
                                                WCN36XX_HAL_LINK_IDLE_STATE);
-                       wcn36xx_smd_delete_bss(wcn, vif);
                }
        }
 out: