qcacmn: Enhance MGMT frame logging in WMI
More detailed logging needed for mgmt frames Add vdev_id, frame type, subtype, and channel to logs by defining wrapper function around logging macro and calling it from send_mgmt_cmd_tlv Change-Id: I0c8c26e3194d97be7d903f64c5c5909c2d4b9799 CRs-Fixed: 1011346
This commit is contained in:

committed by
Nandini Suresh

parent
c7cd2d6bec
commit
38a294f178
@@ -111,6 +111,11 @@ void *wmi_unified_attach(void *scn_handle,
|
|||||||
osdev_t osdev, enum wmi_target_type target_type,
|
osdev_t osdev, enum wmi_target_type target_type,
|
||||||
bool use_cookie, struct wmi_rx_ops *ops);
|
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
|
* detach for unified WMI
|
||||||
*
|
*
|
||||||
|
@@ -76,6 +76,28 @@ struct wmi_event_debug {
|
|||||||
uint64_t time;
|
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
|
* struct wmi_log_buf_t - WMI log buffer information type
|
||||||
* @buf - Refernce to WMI log buffer
|
* @buf - Refernce to WMI log buffer
|
||||||
|
Reference in New Issue
Block a user