Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 788e9d91 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by Ian Maund
Browse files

wil6210: fix false "scan timeout"



When sending scan request, if hardware is not ready, scan timer was started
and scan timeout mis-reported.

Change-Id: I13de8ed2132fe9e134c741222590c231ae9170ab
Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Git-commit: a21420864a28f2cf24afdc555da7b6d7c100e9d8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git


Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 0e2d7c8c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
}