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

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

Merge "icnss2: Avoid sending MODE_OFF if MODE_ON is not set"

parents 0a6f06bd fcf3a13f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1350,6 +1350,10 @@ int wlfw_wlan_mode_send_sync_msg(struct icnss_priv *priv,
	    mode == QMI_WLFW_OFF_V01)
		return 0;

	if (!test_bit(ICNSS_MODE_ON, &priv->state) &&
	    mode == QMI_WLFW_OFF_V01)
		return 0;

	icnss_pr_dbg("Sending Mode request, state: 0x%lx, mode: %d\n",
		     priv->state, mode);