From: Vladimir Kondratiev Date: Wed, 6 Aug 2014 07:31:57 +0000 (+0300) Subject: wil6210: fix false "scan timeout" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a21420864a28f2cf24afdc555da7b6d7c100e9d8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c index ee8a0e588d6e..a00f31881df9 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; }