mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "icnss2: change to avoid device crash if RF card is not present"
This commit is contained in:
commit
d703eb2b30
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