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

Commit 93a521dc authored by Hamad Kadmany's avatar Hamad Kadmany
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 abd1cc45
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1414,6 +1414,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);