summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Valo2011-11-01 07:44:13 +0100
committerKalle Valo2011-11-11 11:59:00 +0100
commit1f40525512ba8c68902b3c2f5c09692364cc6b6a (patch)
tree2ed13618d66e83e52603d12e988656236fbd1a9a
parentath6kl: create ath6kl_cfg80211_stop() (diff)
downloadkernel-qcow2-linux-1f40525512ba8c68902b3c2f5c09692364cc6b6a.tar.gz
kernel-qcow2-linux-1f40525512ba8c68902b3c2f5c09692364cc6b6a.tar.xz
kernel-qcow2-linux-1f40525512ba8c68902b3c2f5c09692364cc6b6a.zip
ath6kl: reset CONNECT_PEND and CONNECTED flags in ath6kl_cfg80211_stop()
Otherwise first connection establish after cutpower suspend will fail. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index db75642d16f2..96b5e9a6850d 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -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,