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

Commit 2f2c34f2 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

icnss: return -EINVAL if sending mode on twice



Ignore mode request and return if it has been sent already.

CRs-Fixed: 2335569
Change-Id: Ib7371ccf8a9b9835f5864f9170ebd98f38a62851
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent d8b55cd9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1911,6 +1911,7 @@ int icnss_wlan_enable(struct device *dev, struct icnss_wlan_enable_cfg *config,
	if (test_bit(ICNSS_MODE_ON, &penv->state)) {
		icnss_pr_err("Already Mode on, ignoring wlan_enable state: 0x%lx\n",
			     penv->state);
		return -EINVAL;
	}

	return icnss_send_wlan_enable_to_fw(penv, config, mode, host_version);