Parcourir la source

qca-wifi: rnr stats APSTATS

add and leverage stats for 6G to be used in apstats.
radio level stats are added for rnr count, active,
created vap, SoC status and cfg80211tool command is added
to display rnr cache.

Change-Id: I882c6349283c5a8295fe8933aee221f9a923e7f8
nobelj il y a 4 ans
Parent
commit
f467ad38f1
2 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 4 0
      dp/inc/cdp_txrx_extd_struct.h
  2. 4 0
      tools/linux/cfg80211_ven_cmd.h

+ 4 - 0
dp/inc/cdp_txrx_extd_struct.h

@@ -170,6 +170,10 @@ struct ol_ath_radiostats {
 	uint32_t    rx_last_msdu_unset_cnt;
 	uint32_t    rx_data_bytes;
 	uint32_t    tx_retries;
+	uint32_t    created_vap;
+	uint32_t    active_vap;
+	uint32_t    rnr_count;
+	uint32_t    soc_status_6ghz;
 };
 
 /* Enumeration of PDEV Configuration parameter */

+ 4 - 0
tools/linux/cfg80211_ven_cmd.h

@@ -1244,6 +1244,8 @@ enum _ol_ath_param_t {
 	OL_ATH_PARAM_RNR_UNSOLICITED_PROBE_RESP_ACTIVE = 460,
 	/* RNR Member of ESS with 2.4G/5G co-located AP */
 	OL_ATH_PARAM_RNR_MEMBER_OF_ESS_24G_5G_CO_LOCATED = 461,
+	/* RNR stats */
+	OL_ATH_PARAM_RNR_STATS = 462,
 };
 
 #ifdef CONFIG_SUPPORT_LIBROXML
@@ -3211,6 +3213,8 @@ struct vendor_commands radio_vendor_cmds[] = {
 		OL_ATH_PARAM_SHIFT | OL_ATH_PARAM_RNR_MEMBER_OF_ESS_24G_5G_CO_LOCATED, SET_PARAM, 1},
 	{"g_rnr_member_ess_colocated_en",
 		OL_ATH_PARAM_SHIFT | OL_ATH_PARAM_RNR_MEMBER_OF_ESS_24G_5G_CO_LOCATED, GET_PARAM, 0},
+	{"get_rnr_stats",
+		OL_ATH_PARAM_SHIFT | OL_ATH_PARAM_RNR_STATS, GET_PARAM, 0},
 };
 #endif
 #endif