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

Commit dca29f2c authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Ignore WLAN disable command when WLAN FW is down"

parents 6c526e1f 0b5429b2
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);