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

Commit 958eec11 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: change to avoid device crash if RF card is not present"

parents 8ddb6b8d 3ecf89fc
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -374,11 +374,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;
	}