mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
icnss2: Avoid sending MODE_OFF if MODE_ON is not set
Avoid sending MODE_OFF QMI request to FW if MODE_ON is not send previously. Change-Id: I143baac9de884773b1f3c376030d5252bae5fa15 Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
This commit is contained in:
parent
6b217200b3
commit
fcf3a13fb7
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue