qcacmn: Unify the wmi command and event record offset

The wmi data buffer offset passed to record command and event
buffer uses different offset and type for command and event.

Change the recorded wmi data buffer type to uin8_t pointer
for both, wmi command and wmi event record.

CRs-Fixed: 2164395
Change-Id: Ie759248a6a32632dd93f751a856a0588d9a11c25
This commit is contained in:
Rakesh Pillai
2017-12-27 14:08:59 +05:30
committed by snandini
parent 3a72d0a4ad
commit 0511046ae5
2 changed files with 19 additions and 17 deletions

View File

@@ -22225,7 +22225,9 @@ void wmi_tlv_attach(wmi_unified_t wmi_handle)
{
wmi_handle->ops = &tlv_ops;
#ifdef WMI_INTERFACE_EVENT_LOGGING
wmi_handle->log_info.buf_offset_command = 2;
/* Skip saving WMI_CMD_HDR and TLV HDR */
wmi_handle->log_info.buf_offset_command = 8;
/* WMI_CMD_HDR is already stripped, skip saving TLV HDR */
wmi_handle->log_info.buf_offset_event = 4;
#endif
populate_tlv_events_id(wmi_handle->wmi_events);