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

Commit dcdf5cf9 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

cnss2: relax size restriction on QDSS trace save indication



Relax size restriction on QDSS trace save indication as it is hard
for WLAN FW to get the precise total size.

CRs-Fixed: 2419412
Change-Id: I0b4c2b081fcdcf655332c31e5b257602b3619e31
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 36d1fba9
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1463,7 +1463,6 @@ static void cnss_wlfw_qdss_trace_save_ind_cb(struct qmi_handle *qmi_wlfw,
	const struct wlfw_qdss_trace_save_ind_msg_v01 *ind_msg = data;
	struct cnss_qmi_event_qdss_trace_save_data *event_data;
	int i = 0;
	u32 total_size = 0;

	cnss_pr_dbg("Received QMI WLFW QDSS trace save indication\n");

@@ -1498,11 +1497,6 @@ static void cnss_wlfw_qdss_trace_save_ind_cb(struct qmi_handle *qmi_wlfw,
			cnss_pr_dbg("seg-%d: addr 0x%llx size 0x%x\n",
				    i, ind_msg->mem_seg[i].addr,
				    ind_msg->mem_seg[i].size);
			total_size += ind_msg->mem_seg[i].size;
		}
		if (total_size != ind_msg->total_size) {
			cnss_pr_err("total size mismatch: %u\n", total_size);
			goto free_event_data;
		}
	}