ath6kl: Set the sme_state to disconnected in disconnect() callback
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Sat, 10 Sep 2011 09:56:35 +0000 (15:26 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 16 Sep 2011 15:49:26 +0000 (18:49 +0300)
After a successful completion of disconnect() driver needs to set
it's sme_state to SME_DISCONNECTED to be in sync with cfg80211
state.

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

index fcef417884b85309700630c90de524fa382f9894..17bb8e28b338746f60822a740dae07fc93dce0c5 100644 (file)
@@ -589,6 +589,8 @@ static int ath6kl_cfg80211_disconnect(struct wiphy *wiphy,
 
        up(&ar->sem);
 
+       ar->sme_state = SME_DISCONNECTED;
+
        return 0;
 }