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

Commit 856db920 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wil6210: add proper locking in cfg suspend"

parents 52e2ee62 f54b6540
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1802,9 +1802,13 @@ 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_abort_scan(wil, true);
	mutex_unlock(&wil->p2p_wdev_mutex);
	mutex_unlock(&wil->mutex);

out:
	return rc;