Commit c33b14da895e8da8a951ccd5a167a7e4ebbb2367

Authored by Shenwei Wang
Committed by Dong Aisheng
1 parent 34b7539ee7

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)

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/net/wireless/ath/ath6kl/cfg80211.c
... ... @@ -845,6 +845,7 @@
845 845 up(&ar->sem);
846 846  
847 847 vif->sme_state = SME_DISCONNECTED;
  848 + cfg80211_disconnected(vif->ndev, 0, NULL, 0, GFP_KERNEL);
848 849  
849 850 return 0;
850 851 }