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

Commit 0b5429b2 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

icnss: Ignore WLAN disable command when WLAN FW is down



Ignore WLAN disable command when WLAN FW is down as WLAN FW is not
able to handle the message at this point.

Change-Id: I05f556c3cc68fa1559565a9ac72b0f2eb93f059f
CRs-Fixed: 2360455
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 9e5706f2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1923,6 +1923,12 @@ EXPORT_SYMBOL(icnss_wlan_enable);

int icnss_wlan_disable(struct device *dev, enum icnss_driver_mode mode)
{
	if (test_bit(ICNSS_FW_DOWN, &penv->state)) {
		icnss_pr_dbg("FW down, ignoring wlan_disable state: 0x%lx\n",
			     penv->state);
		return 0;
	}

	return icnss_send_wlan_disable_to_fw(penv);
}
EXPORT_SYMBOL(icnss_wlan_disable);