Sfoglia il codice sorgente

qcacmn: Filter diag events in WMI extended debug mode

Filter diag events while recording WMI extended debug log messages.

Change-Id: I4071c66eee5880fbe336ea8c21081b3054dfb835
CRs-Fixed: 2316702
Karthik Kantamneni 6 anni fa
parent
commit
574d2147c3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      wmi/src/wmi_unified.c

+ 1 - 1
wmi/src/wmi_unified.c

@@ -144,7 +144,7 @@ static QDF_STATUS wmi_ext_dbg_msg_event_record(struct wmi_unified *wmi_handle,
 	uint32_t id;
 
 	id = WMI_GET_FIELD(buf, WMI_CMD_HDR, COMMANDID);
-	if (id != wmi_diag_event_id)
+	if (id != wmi_handle->wmi_events[wmi_diag_event_id])
 		return wmi_ext_dbg_msg_record(wmi_handle, buf, len,
 					      WMI_MSG_TYPE_EVENT);