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

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

Merge "diag: Add support for querying diagid for wpss subsystem"

parents e3651407 b54689be
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2390,6 +2390,8 @@ int diag_query_pd(char *process_name)
		return PERIPHERAL_CDSP;
	if (diag_query_pd_name(process_name, "npu/root_pd"))
		return PERIPHERAL_NPU;
	if (diag_query_pd_name(process_name, "wpss/root_pd"))
		return PERIPHERAL_WCNSS;
	if (diag_query_pd_name(process_name, "wlan_pd"))
		return UPD_WLAN;
	if (diag_query_pd_name(process_name, "audio_pd"))
+4 −1
Original line number Diff line number Diff line
@@ -886,8 +886,11 @@ static void process_diagid(uint8_t *buf, uint32_t len,
		diag_id++;
		new_request = 1;
		pd_val = diag_query_pd(process_name);
		if (pd_val < 0)
		if (pd_val < 0) {
			pr_err("diag: diagid request string: %s does not exist in the database\n",
			process_name);
			return;
		}
		diag_add_diag_id_to_list(diag_id, process_name,
			pd_val, peripheral);
		if (diagid_v2_feature_mask) {