diff --git a/wmi_unified_api.h b/wmi_unified_api.h index adec2f7c90..872f059ace 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -111,6 +111,11 @@ void *wmi_unified_attach(void *scn_handle, osdev_t osdev, enum wmi_target_type target_type, bool use_cookie, struct wmi_rx_ops *ops); + +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); + /** * detach for unified WMI * diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index a16bf9cced..9ee234a8c2 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -76,6 +76,28 @@ struct wmi_event_debug { uint64_t time; }; +/** + * struct wmi_command_header - Type for accessing frame data + * @ type - 802.11 Frame type + * @ subType - 802.11 Frame subtype + * @ protVer - 802.11 Version + */ +struct wmi_command_header { +#ifndef ANI_LITTLE_BIT_ENDIAN + + uint32_t sub_type:4; + uint32_t type:2; + uint32_t prot_ver:2; + +#else + + uint32_t prot_ver:2; + uint32_t type:2; + uint32_t sub_type:4; + +#endif +}; + /** * struct wmi_log_buf_t - WMI log buffer information type * @buf - Refernce to WMI log buffer