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

This commit is contained in:
qctecmdr 2021-06-14 12:41:45 -07:00 committed by Gerrit - the friendly Code Review server
commit dc1e3e8117

View File

@ -1350,6 +1350,10 @@ int wlfw_wlan_mode_send_sync_msg(struct icnss_priv *priv,
mode == QMI_WLFW_OFF_V01) mode == QMI_WLFW_OFF_V01)
return 0; 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", icnss_pr_dbg("Sending Mode request, state: 0x%lx, mode: %d\n",
priv->state, mode); priv->state, mode);