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

Commit 48644443 authored by Sandeep Singh's avatar Sandeep Singh
Browse files

icnss2: change to avoid device crash if RF card is not present



This changes avoids device crash if Rf card is not present
in device.

Change-Id: I4b22ad0023a38e5b3ef49d6bf0e404b00c608115
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent 992fc597
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -649,12 +649,14 @@ int wlfw_cap_send_sync_msg(struct icnss_priv *priv)
				    ret);
		goto out;
	} else if (resp->resp.result != QMI_RESULT_SUCCESS_V01) {
		ret = -resp->resp.result;
		if (resp->resp.error == QMI_ERR_PLAT_CCPM_CLK_INIT_FAILED) {
			icnss_pr_err("RF card not present\n");
			goto out;
		}
		icnss_qmi_fatal_err(
			"QMI Capability request rejected, result:%d error:%d\n",
			resp->resp.result, resp->resp.error);
		ret = -resp->resp.result;
		if (resp->resp.error == QMI_ERR_PLAT_CCPM_CLK_INIT_FAILED)
			icnss_qmi_fatal_err("RF card not present\n");
		goto out;
	}