From f94473721dffba0561a47352d416f62d7c0a8e1c Mon Sep 17 00:00:00 2001 From: spuligil Date: Thu, 21 Sep 2017 14:03:00 -0700 Subject: [PATCH] fw-api: CL 3505576 - update fw common interface files WMI support for beacon count and beacon outage statistics Change-Id: I10239bc5a7c8dc13d44f737c810b1588dc236008 CRs-Fixed: 1107600 --- fw/wmi_unified.h | 15 +++++++++++++++ fw/wmi_version.h | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index c3dc0e195a..b57421c0a9 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -5087,6 +5087,7 @@ typedef enum { WMI_REQUEST_RSSI_PER_CHAIN_STAT = 0x100, WMI_REQUEST_CONGESTION_STAT = 0x200, WMI_REQUEST_PEER_EXTD_STAT = 0x400, + WMI_REQUEST_VDEV_EXTD_STAT = 0x800, } wmi_stats_id; /* @@ -5698,6 +5699,8 @@ typedef struct { /** number of MIB stats event structures (wmi_mib_stats) */ A_UINT32 num_mib_stats; A_UINT32 pdev_id; /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0. */ + /** number of extended vdev stats event structures (wmi_vdev_extd_stats) */ + A_UINT32 num_vdev_extd_stats; /* This TLV is followed by another TLV of array of bytes * A_UINT8 data[]; @@ -5708,6 +5711,7 @@ typedef struct { * num_bcnflt_stats * size_of() * num_chan_stats * size of(struct wmi_chan_stats) * num_mib_stats * size of(struct wmi_mib_stats) + * num_vdev_extd_stats * size of(struct wmi_vdev_extd_stats) */ /* If WMI_REQUEST_PEER_EXTD_STAT is set in stats_id, * the data[] array also contains num_peer_stats * size of wmi_peer_extd_stats @@ -6312,6 +6316,17 @@ typedef struct { A_UINT32 bcn_rssi_history[MAX_RSSI_VALUES];/*History of last ten Beacon rssi of the connected Bss*/ } wmi_vdev_stats; +/* + * vdev ext stats with additonal bcn stats + * (Due to backward compatiblity requirements, these new stats fields cannot be + * added inside wmi_vdev_stats.) + */ +typedef struct { + A_UINT32 vdev_id; + A_UINT32 tx_bcn_succ_cnt; /* Total number of beacon frame transmitted successfully */ + A_UINT32 tx_bcn_outage_cnt; /* Total number of failed beacons */ +} wmi_vdev_extd_stats; + /** * peer statistics. */ diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 0aa4f7e073..7684d3ffc0 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_ 437 +#define __WMI_REVISION_ 438 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work