summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShenwei Wang <shenwei.wang@freescale.com>2015-02-16 10:27:37 -0600
committerDong Aisheng <b29396@freescale.com>2015-03-06 16:57:10 +0800
commitc33b14da895e8da8a951ccd5a167a7e4ebbb2367 (patch)
treec1fb87414e0b349676d3dac267fffec57d8da83a
parent34b7539ee70453e1fe18f723b24520c1e5121e00 (diff)
MLK-10210 WIFI: ath6kl: Fixed the issue that warning messages were printed when uninstalling ath6kl_sdio after iperf test.
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)
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index fd4c89df67e1..56d9bed4b069 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -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;
}