Parcourir la source

Merge "qca-wifi: FR47702 TWT stats, add TWT stats in control path stats"

Linux Build Service Account il y a 4 ans
Parent
commit
45a75f3aa5

+ 11 - 0
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 */

+ 9 - 0
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,

+ 9 - 0
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 \