qcacmn: Fix WMI mgmt cmd tx comp record
wmi_mgmt_cmd_record is used to add WMI mgmt cmd record. But mgmt
cmd tx comp record is missing due to mismatch of is_management_record.
Fix is to change is_management_record WMI cmd id to match those who
call wmi_mgmt_cmd_record. In wmi_unified_cmd_send, mgmt cmd record
add is no longer needed since already added in wmi_mgmt_cmd_record.
Change-Id: I41daf428ac0848dabaf4d87e3ecb7dca5e1c2774
CRs-Fixed: 2168104
diff --git a/wmi_unified.c b/wmi_unified.c
index 06ee8aa..1e13d85 100644
--- a/wmi_unified.c
+++ b/wmi_unified.c
@@ -1427,13 +1427,13 @@
#ifdef WMI_INTERFACE_EVENT_LOGGING
if (wmi_handle->log_info.wmi_logging_enable) {
qdf_spin_lock_bh(&wmi_handle->log_info.wmi_record_lock);
- /*Record 16 bytes of WMI cmd data -
- * * exclude TLV and WMI headers */
- if (wmi_handle->ops->is_management_record(cmd_id)) {
- WMI_MGMT_COMMAND_RECORD(wmi_handle, cmd_id,
- qdf_nbuf_data(buf) +
- wmi_handle->log_info.buf_offset_command);
- } else {
+ /*
+ * Record 16 bytes of WMI cmd data -
+ * exclude TLV and WMI headers
+ *
+ * WMI mgmt command already recorded in wmi_mgmt_cmd_record
+ */
+ if (wmi_handle->ops->is_management_record(cmd_id) == false) {
WMI_COMMAND_RECORD(wmi_handle, cmd_id,
qdf_nbuf_data(buf) +
wmi_handle->log_info.buf_offset_command);