Skip to content

Commit a214208

Browse files
Vladimir Kondratievlinvjw
authored andcommitted
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>
1 parent 36345ac commit a214208

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/net/wireless/ath/wil6210/cfg80211.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ static int wil_cfg80211_scan(struct wiphy *wiphy,
311311
rc = wmi_send(wil, WMI_START_SCAN_CMDID, &cmd, sizeof(cmd.cmd) +
312312
cmd.cmd.num_channels * sizeof(cmd.cmd.channel_list[0]));
313313

314-
if (rc)
314+
if (rc) {
315+
del_timer_sync(&wil->scan_timer);
315316
wil->scan_request = NULL;
317+
}
316318

317319
return rc;
318320
}

0 commit comments

Comments
 (0)