From 9f2d727be7ec742b80f88885532c8aa64c351ee6 Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Sun, 12 Dec 2021 06:00:55 -0800 Subject: [PATCH] fw-api: CL 16646664 - update fw common interface files Change-Id: I1d6555b67af18a1befb5766c5650b17b4b33ad83 WMI: add PDEV_PKTLOG_DECODE_INFO_EVENT msg def CRs-Fixed: 2262693 --- fw/wmi_tlv_defs.h | 7 +++++++ fw/wmi_unified.h | 25 +++++++++++++++++++++++++ fw/wmi_version.h | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index 5229498e3803..b2c653967b2d 100644 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -1224,6 +1224,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_resmgr_chan_time_quota_tlv, WMITLV_TAG_STRUC_wmi_sw_cal_ver_cap, WMITLV_TAG_STRUC_wmi_soc_tqm_reset_enable_disable_cmd_fixed_param, + WMITLV_TAG_STRUC_wmi_pdev_pktlog_decode_info_evt_fixed_param, } WMITLV_TAG_ID; /* @@ -1985,6 +1986,7 @@ typedef enum { OP(WMI_ROAM_FRAME_EVENTID) \ OP(WMI_QUIET_HANDLING_EVENTID) \ OP(WMI_RESMGR_CHAN_TIME_QUOTA_CHANGED_EVENTID) \ + OP(WMI_PDEV_PKTLOG_DECODE_INFO_EVENTID) \ /* add new EVT_LIST elements above this line */ @@ -6603,6 +6605,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_QUIET_HANDLING_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_resmgr_chan_time_quota_tlv, chan_quota, WMITLV_SIZE_VAR) WMITLV_CREATE_PARAM_STRUC(WMI_RESMGR_CHAN_TIME_QUOTA_CHANGED_EVENTID); +/* PDev Packet Log Decode Info Event */ +#define WMITLV_TABLE_WMI_PDEV_PKTLOG_DECODE_INFO_EVENTID(id,op,buf,len) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_pktlog_decode_info_evt_fixed_param, wmi_pdev_pktlog_decode_info_evt_fixed_param, fixed_param, WMITLV_SIZE_FIX) +WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_PKTLOG_DECODE_INFO_EVENTID); + #ifdef __cplusplus } diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 8b09bda1635d..9093902b559e 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -1583,6 +1583,10 @@ typedef enum { WMI_PDEV_FIPS_EXTEND_EVENTID, + /* Event to send packet log decode information */ + WMI_PDEV_PKTLOG_DECODE_INFO_EVENTID, + + /* VDEV specific events */ /** VDEV started event in response to VDEV_START request */ WMI_VDEV_START_RESP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_VDEV), @@ -8628,6 +8632,27 @@ typedef struct { */ } wmi_pdev_pktlog_filter_cmd_fixed_param; +/** + * WMI event to send packet log decode information to Host. + * This sends the metadata which will be embedded by Host in the file-level + * header of the pktlog trace file (i.e. the ath_pktlog_bufhdr struct). + * This will be later used by the pktlog post-processing scripts to get + * prerequisite pktlog_defs*.JSON files for decoding the trace. + */ +typedef struct { + A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_pktlog_decode_info_evt_fixed_param */ + /** pdev_id for identifying the MAC + * See macros starting with WMI_PDEV_ID_ for values. + */ + A_UINT32 pdev_id; + /** Forty byte field for storing software image as null terminated string */ + A_UINT8 software_image[40]; + /** Forty byte field for storing chip info as null terminated string */ + A_UINT8 chip_info[40]; + /** Four byte field for storing JSON version */ + A_UINT32 pktlog_defs_json_version; +} wmi_pdev_pktlog_decode_info_evt_fixed_param; + typedef enum { WMI_ROGUE_AP_ON_STA_PS = 1, /* rogue ap on sta ps module */ } WMI_ROGUE_AP_TYPE; diff --git a/fw/wmi_version.h b/fw/wmi_version.h index df4ef433a16a..456a08f2a49b 100644 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -36,7 +36,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility. */ -#define __WMI_REVISION_ 1092 +#define __WMI_REVISION_ 1093 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work