icnss2: Do not send QMI_WLFW_WFC_CALL_STATUS_REQ_V01 msg post WLAN MODE_OFF

Do not send QMI_WLFW_WFC_CALL_STATUS_REQ_V01 msg post WLAN MODE_OFF to
avoid FW crash.

Change-Id: I756b2aeb4241385d4f64f398ca13c8dace78d1b3
CRs-Fixed: 3754244
This commit is contained in:
Prateek Patil
2024-05-28 17:45:06 +05:30
committed by Ravindra Konda
parent e60f66098e
commit ae9e2e6bd5

View File

@@ -2806,7 +2806,8 @@ static int icnss_wlfw_wfc_call_status_send_sync
struct qmi_txn txn;
int ret = 0;
if (!test_bit(ICNSS_FW_READY, &priv->state)) {
if (!test_bit(ICNSS_FW_READY, &priv->state) ||
!test_bit(ICNSS_MODE_ON, &priv->state)) {
icnss_pr_err("Drop IMS WFC indication as FW not initialized\n");
return -EINVAL;
}