From 20fb76b73b0dc1d9cbf85b9c3813caf9764d7af2 Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Tue, 19 Jul 2016 13:20:57 -0700 Subject: [PATCH] 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 --- wmi_unified_api.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 55951f42f0..8086231c58 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -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