From: Vasanthakumar Thiagarajan Date: Sat, 10 Sep 2011 09:56:35 +0000 (+0530) Subject: ath6kl: Set the sme_state to disconnected in disconnect() callback X-Git-Tag: next-20111004~56^2~12^2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=170826dd0d9fa71b648aa31ecb1e2973d777dbdb;p=karo-tx-linux.git ath6kl: Set the sme_state to disconnected in disconnect() callback 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index fcef417884b8..17bb8e28b338 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c @@ -589,6 +589,8 @@ static int ath6kl_cfg80211_disconnect(struct wiphy *wiphy, up(&ar->sem); + ar->sme_state = SME_DISCONNECTED; + return 0; }