From 2df9df50d1844bc53ec703d43accd026dc57391b Mon Sep 17 00:00:00 2001 From: nwzhao Date: Thu, 21 May 2020 16:14:27 -0700 Subject: [PATCH] qca-wifi: FR47702 TWT stats, add TWT stats in control path stats Add TWT stats in control path stats Change-Id: If41c13c4d11cf237bfd58a74d79326e32ed609be CRs-Fixed: 2609943 --- umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_defs.h | 11 +++++++++++ .../dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h | 9 +++++++++ .../dispatcher/inc/wlan_cp_stats_ic_utils_api.h | 9 +++++++++ 3 files changed, 29 insertions(+) diff --git a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_defs.h b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_defs.h index ff1a28688b..6df73b2bf9 100644 --- a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_defs.h +++ b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_defs.h @@ -468,6 +468,17 @@ struct peer_ic_cp_stats { uint32_t cs_tx_assoc_fail; uint32_t cs_is_tx_nobuf; uint32_t cs_rx_decryptcrc; + + /* TWT stats */ + uint32_t cs_twt_event_type; + uint32_t cs_twt_flow_id:16, + cs_twt_bcast:1, + cs_twt_trig:1, + cs_twt_announ:1; + uint32_t cs_twt_dialog_id; + uint32_t cs_twt_wake_dura_us; + uint32_t cs_twt_wake_intvl_us; + uint32_t cs_twt_sp_offset_us; }; #endif /* QCA_SUPPORT_CP_STATS */ diff --git a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h index bfea67113a..270a7e3edd 100644 --- a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h +++ b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h @@ -625,6 +625,15 @@ UCFG_PEER_CP_STATS_SET_FUNCS(is_tx_nobuf); UCFG_PEER_CP_STATS_SET_FUNCS(tx_dropblock); #endif UCFG_PEER_CP_STATS_SET_FUNCS(rx_decryptcrc); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_event_type); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_flow_id); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_bcast); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_trig); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_announ); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_dialog_id); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_wake_dura_us); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_wake_intvl_us); +UCFG_PEER_CP_STATS_SET_FUNCS(twt_sp_offset_us); static inline void ucfg_peer_cp_stats_rx_mgmt_rssi_update(struct wlan_objmgr_peer *peer, diff --git a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_utils_api.h b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_utils_api.h index 002c0b7082..dc1b9f1a31 100644 --- a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_utils_api.h +++ b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_utils_api.h @@ -67,6 +67,15 @@ PEER_CP_STATS_SET_FUNCS(is_tx_nobuf); PEER_CP_STATS_SET_FUNCS(tx_dropblock); #endif PEER_CP_STATS_SET_FUNCS(rx_decryptcrc); +PEER_CP_STATS_SET_FUNCS(twt_event_type); +PEER_CP_STATS_SET_FUNCS(twt_flow_id); +PEER_CP_STATS_SET_FUNCS(twt_bcast); +PEER_CP_STATS_SET_FUNCS(twt_trig); +PEER_CP_STATS_SET_FUNCS(twt_announ); +PEER_CP_STATS_SET_FUNCS(twt_dialog_id); +PEER_CP_STATS_SET_FUNCS(twt_wake_dura_us); +PEER_CP_STATS_SET_FUNCS(twt_wake_intvl_us); +PEER_CP_STATS_SET_FUNCS(twt_sp_offset_us); #define PEER_CP_STATS_GET_FUNCS(field) \ static inline uint64_t \