summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/cfg80211.c
diff options
context:
space:
mode:
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>2014-05-27 14:45:48 +0300
committerJohn W. Linville <linville@tuxdriver.com>2014-05-29 13:10:31 -0400
commit047e5d74b6e97ef883f4c8e912bd89451957de2b (patch)
treec68df03a0e463bdbf7f7fd1e9dfc5d042a2d0335 /drivers/net/wireless/ath/wil6210/cfg80211.c
parent5bb6423e8f23b755cb20c21aa896cc4d4baf6bc5 (diff)
downloadop-kernel-dev-047e5d74b6e97ef883f4c8e912bd89451957de2b.zip
op-kernel-dev-047e5d74b6e97ef883f4c8e912bd89451957de2b.tar.gz
wil6210: detect scan timeouts
If scan has not finished in some reasonable time (10sec), interpret it as if firmware error occurs but was not reported. Firmware should report scan completion for every scan request, so it is error condition indeed. Perform firmware recovery procedure. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c
index 6e699d0..820d4eb 100644
--- a/drivers/net/wireless/ath/wil6210/cfg80211.c
+++ b/drivers/net/wireless/ath/wil6210/cfg80211.c
@@ -288,6 +288,7 @@ static int wil_cfg80211_scan(struct wiphy *wiphy,
}
wil->scan_request = request;
+ mod_timer(&wil->scan_timer, jiffies + WIL6210_SCAN_TO);
memset(&cmd, 0, sizeof(cmd));
cmd.cmd.num_channels = 0;
OpenPOWER on IntegriCloud