aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorVivek Natarajan <nataraja@qca.qualcomm.com>2012-03-28 09:51:26 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2012-04-03 14:26:01 -0400
commit3d79499c1c9cbdcb9ccc96e416c9216763e153db (patch)
tree495d0193273228f3324a66e81bc3f14461a46800 /drivers/net
parent8437754c83351d6213c1a47ff029c1126d6042a7 (diff)
ath6kl: Fix scan related issue on suspend-resume
When a scan request is pending while going to suspend, any new scan request after resume will fail. So, cancel all scan requests in all the vifs before moving to suspend state. Signed-off-by: PingYang Zhang <pingzhan@qca.qualcomm.com> Signed-off-by: Vivek Natarajan <nataraja@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 0c49708cf37e..1272508513f7 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -2220,6 +2220,7 @@ int ath6kl_cfg80211_suspend(struct ath6kl *ar,
2220 enum ath6kl_cfg_suspend_mode mode, 2220 enum ath6kl_cfg_suspend_mode mode,
2221 struct cfg80211_wowlan *wow) 2221 struct cfg80211_wowlan *wow)
2222{ 2222{
2223 struct ath6kl_vif *vif;
2223 enum ath6kl_state prev_state; 2224 enum ath6kl_state prev_state;
2224 int ret; 2225 int ret;
2225 2226
@@ -2289,6 +2290,9 @@ int ath6kl_cfg80211_suspend(struct ath6kl *ar,
2289 break; 2290 break;
2290 } 2291 }
2291 2292
2293 list_for_each_entry(vif, &ar->vif_list, list)
2294 ath6kl_cfg80211_scan_complete_event(vif, true);
2295
2292 return 0; 2296 return 0;
2293} 2297}
2294EXPORT_SYMBOL(ath6kl_cfg80211_suspend); 2298EXPORT_SYMBOL(ath6kl_cfg80211_suspend);