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

Commit 345a1454 authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

icnss2: Add build type info to wlfw_cap_req_msg



Provide Host build type to fw using wlfw_cap_req QMI message for
QDSS feature handling.

Change-Id: Ia5507be4067e6ae4724b55fbee7db940110411e7
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 0151c084
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -2103,6 +2103,18 @@ int icnss_send_vbatt_update(struct icnss_priv *priv, uint64_t voltage_uv)
	return ret;
}

#ifdef CONFIG_ICNSS2_DEBUG
static inline u32 icnss_get_host_build_type(void)
{
	return QMI_HOST_BUILD_TYPE_PRIMARY_V01;
}
#else
static inline u32 icnss_get_host_build_type(void)
{
	return QMI_HOST_BUILD_TYPE_SECONDARY_V01;
}
#endif

int wlfw_host_cap_send_sync(struct icnss_priv *priv)
{
	struct wlfw_host_cap_req_msg_v01 *req;
@@ -2138,6 +2150,9 @@ int wlfw_host_cap_send_sync(struct icnss_priv *priv)
	req->cal_done = priv->cal_done;
	icnss_pr_dbg("Calibration done is %d\n", priv->cal_done);

	req->host_build_type_valid = 1;
	req->host_build_type = icnss_get_host_build_type();

	ret = qmi_txn_init(&priv->qmi, &txn,
			   wlfw_host_cap_resp_msg_v01_ei, resp);
	if (ret < 0) {