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
7a59ca0380
commit
20fb76b73b
@@ -112,9 +112,19 @@ void *wmi_unified_attach(void *scn_handle,
|
||||
bool use_cookie, struct wmi_rx_ops *ops);
|
||||
|
||||
|
||||
/**
|
||||
* wmi_mgmt_cmd_record() - Wrapper function for mgmt command logging macro
|
||||
*
|
||||
* @wmi_handle: wmi handle
|
||||
* @cmd: mgmt command
|
||||
* @header: pointer to 802.11 header
|
||||
* @vdev_id: vdev id
|
||||
* @chanfreq: channel frequency
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
void wmi_mgmt_cmd_record(wmi_unified_t wmi_handle, WMI_CMD_ID cmd,
|
||||
uint32_t type, uint32_t subtype,
|
||||
uint32_t vdev_id, uint32_t chanfreq);
|
||||
void *header, uint32_t vdev_id, uint32_t chanfreq);
|
||||
|
||||
/**
|
||||
* detach for unified WMI
|
||||
|
Reference in New Issue
Block a user