]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MLK-10210 WIFI: ath6kl: Fixed the issue that warning messages were printed when unins...
authorShenwei Wang <shenwei.wang@freescale.com>
Mon, 16 Feb 2015 16:27:37 +0000 (10:27 -0600)
committerDong Aisheng <b29396@freescale.com>
Fri, 6 Mar 2015 08:57:10 +0000 (16:57 +0800)
When handing the command "ifconfig wlan0 down", the driver handler did
not notify the disconnected event to the upper layer stack cfg80211,
which would cause the relating resources unable to be released. A
notification of disconnet event to cfg80211 was added when the driver
was changed to the disconnect state.

Signed-off-by: Shenwei Wang <shenwei.wang@freescale.com>
(cherry picked from commit 0b7b203a563ac98f5f0c5695a5149ec80d2114b4)

drivers/net/wireless/ath/ath6kl/cfg80211.c

index fd4c89df67e1658ae404686a911fc62607cee1cd..56d9bed4b0694e44972df8ae602c194fd3cda71e 100644 (file)
@@ -845,6 +845,7 @@ static int ath6kl_cfg80211_disconnect(struct wiphy *wiphy,
        up(&ar->sem);
 
        vif->sme_state = SME_DISCONNECTED;
+       cfg80211_disconnected(vif->ndev, 0, NULL, 0, GFP_KERNEL);
 
        return 0;
 }