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

Commit 0bb61162 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Handle calibration done QMI indication



In order to be compatible with different QMI sequence designs,
add the support to also handle calibration done QMI indication
from firmware QMI server.

Change-Id: I6fd8d3fec9d69cdeeb7ffabf0ab2b83da35352c3
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 41e978d6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -242,6 +242,8 @@ static int cnss_wlfw_ind_register_send_sync(struct cnss_plat_data *plat_priv)
	req.fw_init_done_enable = 1;
	req.pin_connect_result_enable_valid = 1;
	req.pin_connect_result_enable = 1;
	req.cal_done_enable_valid = 1;
	req.cal_done_enable = 1;

	req_desc.max_msg_len = WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN;
	req_desc.msg_id = QMI_WLFW_IND_REGISTER_REQ_V01;
@@ -1054,6 +1056,11 @@ static void cnss_wlfw_clnt_ind(struct qmi_handle *handle,
	case QMI_WLFW_PIN_CONNECT_RESULT_IND_V01:
		cnss_qmi_pin_result_ind_hdlr(plat_priv, msg, msg_len);
		break;
	case QMI_WLFW_CAL_DONE_IND_V01:
		cnss_driver_event_post(plat_priv,
				       CNSS_DRIVER_EVENT_COLD_BOOT_CAL_DONE,
				       0, NULL);
		break;
	default:
		cnss_pr_err("Invalid QMI WLFW indication, msg_id: 0x%x\n",
			    msg_id);