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

Commit 13d2ddfd authored by Hamad Kadmany's avatar Hamad Kadmany Committed by Maya Erez
Browse files

wil6210: Improve AP stop handling



Set resetting flag early when stopping AP to avoid
disconnect events as a result of disconnect command
sent during AP stop procedure.

Change-Id: I59647d5775e68705b361b1aaacbc6a6088e9c813
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 0e2f6e3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1413,6 +1413,8 @@ static int wil_cfg80211_stop_ap(struct wiphy *wiphy,
	wil6210_bus_request(wil, WIL_DEFAULT_BUS_REQUEST_KBPS);
	wil_set_recovery_state(wil, fw_recovery_idle);

	set_bit(wil_status_resetting, wil->status);

	mutex_lock(&wil->mutex);

	wmi_pcp_stop(wil);