mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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: Sandeep Singh <sandsing@codeaurora.org>
This commit is contained in:
parent
5183288436
commit
ac7f6bdf53
1 changed files with 5 additions and 3 deletions
|
|
@ -648,12 +648,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue