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
Esse commit está contido em:
nwzhao
2020-05-21 16:14:27 -07:00
commit de Gerrit - the friendly Code Review server
commit 2df9df50d1
3 arquivos alterados com 29 adições e 0 exclusões

Ver arquivo

@@ -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 */

Ver arquivo

@@ -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,

Ver arquivo

@@ -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 \