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

Commit 3ca3856e authored by Hamad Kadmany's avatar Hamad Kadmany Committed by Maya Erez
Browse files

wil6210: abort properly in cfg suspend



On-going operations were not aborted properly
and required locks were not taken.

Change-Id: I6608b980efd5bab4dfdf5f723d0eb3e14119c083
Signed-off-by: default avatarHamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Signed-off-by: default avatarMaya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 144a12a6d83f3ca34ddefce5dee4d502afd2fc5b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


[merez@codeaurora.org: fix merge conflicts]
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 54164b9d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1807,9 +1807,8 @@ static int wil_cfg80211_suspend(struct wiphy *wiphy,
	wil_dbg_pm(wil, "suspending\n");

	mutex_lock(&wil->mutex);
	wil_p2p_stop_discovery(wil);

	mutex_lock(&wil->p2p_wdev_mutex);
	wil_p2p_stop_radio_operations(wil);
	wil_abort_scan(wil, true);
	mutex_unlock(&wil->p2p_wdev_mutex);
	mutex_unlock(&wil->mutex);