ath6kl: reset CONNECT_PEND and CONNECTED flags in ath6kl_cfg80211_stop()
authorKalle Valo <kvalo@qca.qualcomm.com>
Tue, 1 Nov 2011 06:44:13 +0000 (08:44 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:59:00 +0000 (12:59 +0200)
Otherwise first connection establish after cutpower suspend will
fail.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c

index db75642d16f28a38f0332782da6082357b56eb69..96b5e9a6850d6416df6b2e61efeb13c8240f45d7 100644 (file)
@@ -2152,6 +2152,8 @@ void ath6kl_cfg80211_stop(struct ath6kl *ar)
                ath6kl_wmi_disconnect_cmd(ar->wmi, vif->fw_vif_idx);
 
        vif->sme_state = SME_DISCONNECTED;
+       clear_bit(CONNECTED, &vif->flags);
+       clear_bit(CONNECT_PEND, &vif->flags);
 
        /* disable scanning */
        if (ath6kl_wmi_scanparams_cmd(ar->wmi, vif->fw_vif_idx, 0xFFFF, 0, 0,