From: Michal Kazior Date: Fri, 5 Jul 2013 13:15:16 +0000 (+0300) Subject: ath10k: abort scan properly if wmi_scan_stop fails X-Git-Tag: v3.13-rc1~105^2~225^2~25^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adb8c9b77cd182b1b3f2b145b8db4043623e3745;p=platform%2Fkernel%2Flinux-exynos.git ath10k: abort scan properly if wmi_scan_stop fails Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 278c968..5082503 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1590,6 +1590,10 @@ static int ath10k_abort_scan(struct ath10k *ar) ret = ath10k_wmi_stop_scan(ar, &arg); if (ret) { ath10k_warn("could not submit wmi stop scan (%d)\n", ret); + spin_lock_bh(&ar->data_lock); + ar->scan.in_progress = false; + ath10k_offchan_tx_purge(ar); + spin_unlock_bh(&ar->data_lock); return -EIO; }