Browse Source

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
Prateek Patil 9 months ago
parent
commit
ae9e2e6bd5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      icnss2/qmi.c

+ 2 - 1
icnss2/qmi.c

@@ -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;
 	}