qcacmn: Fix compilation with WMI_INTERFACE_EVENT_LOGGING disabled
Compilation error occurs due to undefined struct when WMI_INTERFACE_EVENT_LOGGING disabled. Use void pointer as argument to wmi_mgmt_cmd_record() and cast as header struct inside logging function to avoid casting as undeclared type. Change-Id: I7d0922ee2009b235473febdbcbc3317e432a1386 CRs-Fixed: 1043597
This commit is contained in:

committed by
Vishwajith Upendra

parent
3ba23ea33f
commit
828a45f7f1
@@ -1641,9 +1641,7 @@ QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
cmd->buf_len = bufp_len;
|
||||
|
||||
wmi_mgmt_cmd_record(wmi_handle, WMI_MGMT_TX_SEND_CMDID,
|
||||
((struct wmi_command_header *)bufp)->type,
|
||||
((struct wmi_command_header *)bufp)->sub_type,
|
||||
cmd->vdev_id, cmd->chanfreq);
|
||||
bufp, cmd->vdev_id, cmd->chanfreq);
|
||||
|
||||
if (wmi_unified_cmd_send(wmi_handle, buf, cmd_len,
|
||||
WMI_MGMT_TX_SEND_CMDID)) {
|
||||
|
Reference in New Issue
Block a user