From e2d3a179e0c68a906db71c575e90b780e32d6fc5 Mon Sep 17 00:00:00 2001 From: spuligil Date: Thu, 9 Jun 2022 06:02:11 -0700 Subject: [PATCH] fw-api: CL 18457221 - update fw common interface files Change-Id: Ic006c1d6d65ec39fa7ae127dcd808a4de62ae903 WMI: add iface_powersave_stats TLV array to IFACE_LINK_STATS_EVENT msg CRs-Fixed: 2262693 --- fw/wmi_tlv_defs.h | 4 +++- fw/wmi_unified.h | 9 +++++++++ fw/wmi_version.h | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index 4930c9548ff8..e389c54f901c 100644 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -1282,6 +1282,7 @@ typedef enum { WMITLV_TAG_STRUC_WMI_WOW_COAP_GET_BUF_INFO_CMD_fixed_param, WMITLV_TAG_STRUC_WMI_WOW_COAP_BUF_INFO_EVENT_fixed_param, WMITLV_TAG_STRUC_wmi_coap_tuple, + WMITLV_TAG_STRUC_wmi_iface_powersave_stats, } WMITLV_TAG_ID; /* @@ -5712,7 +5713,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_iface_link_stats_event_fixed_param, wmi_iface_link_stats_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_iface_link_stats, iface_link_stats, WMITLV_SIZE_VAR) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_wmm_ac_stats, ac, WMITLV_SIZE_VAR) \ - WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_iface_offload_stats, iface_offload_stats, WMITLV_SIZE_VAR) + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_iface_offload_stats, iface_offload_stats, WMITLV_SIZE_VAR) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_iface_powersave_stats, iface_powersave_stats, WMITLV_SIZE_VAR) WMITLV_CREATE_PARAM_STRUC(WMI_IFACE_LINK_STATS_EVENTID); diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index c56f0cd0324c..6dc336596e42 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -10048,6 +10048,14 @@ typedef struct { A_UINT32 fwd_count; } wmi_iface_offload_stats; +typedef struct { + A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_powersave_stats */ + /** Total TIM beacon event that wlan ps received **/ + A_UINT32 tot_tim_bcn; + /** Total error TIM beacon found by wlan ps including no rx in TIM wakeup and TIM event in active state **/ + A_UINT32 tot_err_tim_bcn; +} wmi_iface_powersave_stats; + /** Interface statistics (once started) reset and start afresh after each connection */ typedef struct { A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_link_stats_event_fixed_param */ @@ -10062,6 +10070,7 @@ typedef struct { * wmi_iface_link_stats iface_link_stats; * num_ac * size of(struct wmi_wmm_ac_stats) * wmi_iface_offload_stats iface_offload_stats[num_offload_stats] + * wmi_iface_powersave_stats iface_powersave_stats[] */ } wmi_iface_link_stats_event_fixed_param; diff --git a/fw/wmi_version.h b/fw/wmi_version.h index da2989ac44d3..c6650c3ccb57 100644 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -37,7 +37,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_ 1161 +#define __WMI_REVISION_ 1162 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work