qcacmn: Add WMI_UNIT_TEST_EVENTID extraction code

Add corresponding host side extraction for WMI_UNIT_TEST_EVENTID

CRs-Fixed: 2073983
Change-Id: Id8455f58d1ba1accdee7095b211abf9a25c7538c
这个提交包含在:
Adil Saeed Musthafa
2017-08-23 17:32:11 -07:00
提交者 snandini
父节点 6faf5a82ba
当前提交 0b6c7605c7
修改 3 个文件,包含 37 行新增0 行删除

查看文件

@@ -3576,12 +3576,16 @@ struct ssid_hotlist_request_params {
* @vdev_id: vdev id
* @module_id: module id
* @num_args: number of arguments
* @diag_token: dialog token, which identifies the transaction.
* this number is generated by wifitool and may be used to
* identify the transaction in the event path
* @args: arguments
*/
struct wmi_unit_test_cmd {
uint32_t vdev_id;
uint32_t module_id;
uint32_t num_args;
uint32_t diag_token;
uint32_t args[WMI_MAX_NUM_ARGS];
};
@@ -5136,6 +5140,32 @@ typedef struct {
uint32_t mib_int_count;
} wmi_host_pdev_stats;
/**
* struct wmi_unit_test_event - Structure corresponding to WMI Unit test event
* @vdev_id: VDEV ID
* @module_id: MODULE ID
* @diag_token: Diag Token (the number that was generated in the unit-test cmd)
* @flag: flag has 2 bits 0x1 indicates status, and 0x2 indicates done-bit
* @payload_len: payload_len (blindly copied from payload_len field in WMI)
* @buffer_len: actual number of data bytes in the variable data size TLV
* buffer_len is likely to be the nearest multiple of 4 (from
* payload_len). both buffer_len and payload_len need to be
* passed to wifitool so that the driver can be agnostic
* regarding these differences.
* @buffer: data buffer
*/
typedef struct {
uint32_t vdev_id;
uint32_t module_id;
uint32_t diag_token;
uint32_t flag;
uint32_t payload_len;
uint32_t buffer_len;
uint8_t buffer[1];
} wmi_unit_test_event;
/**
* struct wmi_host_snr_info - WMI host Signal to noise ration info
* @bcn_snr: beacon SNR
@@ -5407,6 +5437,7 @@ typedef enum {
wmi_update_whal_mib_stats_event_id,
wmi_update_vdev_rate_stats_event_id,
wmi_diag_event_id,
wmi_unit_test_event_id,
wmi_ocb_set_sched_event_id,
wmi_dbg_mesg_flush_complete_event_id,
wmi_rssi_breach_event_id,