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

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

Merge "icnss: return -EINVAL if sending mode on twice"

parents 96e167ea 2f2c34f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line 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)) {
	if (test_bit(ICNSS_MODE_ON, &penv->state)) {
		icnss_pr_err("Already Mode on, ignoring wlan_enable state: 0x%lx\n",
		icnss_pr_err("Already Mode on, ignoring wlan_enable state: 0x%lx\n",
			     penv->state);
			     penv->state);
		return -EINVAL;
	}
	}


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