summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/cfg80211.c
diff options
context:
space:
mode:
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>2014-08-06 10:31:57 +0300
committerJohn W. Linville <linville@tuxdriver.com>2014-08-25 16:17:36 -0400
commita21420864a28f2cf24afdc555da7b6d7c100e9d8 (patch)
tree9d19380276a96b481fc8b56ceee9a0268c1e6eb4 /drivers/net/wireless/ath/wil6210/cfg80211.c
parent36345ac33ca8d381c215091c5535e62335668f01 (diff)
downloadop-kernel-dev-a21420864a28f2cf24afdc555da7b6d7c100e9d8.zip
op-kernel-dev-a21420864a28f2cf24afdc555da7b6d7c100e9d8.tar.gz
wil6210: fix false "scan timeout"
When sending scan request, if hardware is not ready, scan timer was started and scan timeout mis-reported. Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/cfg80211.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/cfg80211.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c
index ee8a0e5..a00f318 100644
--- a/drivers/net/wireless/ath/wil6210/cfg80211.c
+++ b/drivers/net/wireless/ath/wil6210/cfg80211.c
@@ -311,8 +311,10 @@ static int wil_cfg80211_scan(struct wiphy *wiphy,
rc = wmi_send(wil, WMI_START_SCAN_CMDID, &cmd, sizeof(cmd.cmd) +
cmd.cmd.num_channels * sizeof(cmd.cmd.channel_list[0]));
- if (rc)
+ if (rc) {
+ del_timer_sync(&wil->scan_timer);
wil->scan_request = NULL;
+ }
return rc;
}
OpenPOWER on IntegriCloud