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
This commit is contained in:
nobelj
2020-08-11 14:48:28 -07:00
parent 8520f2f1c2
commit f467ad38f1
2 changed files with 8 additions and 0 deletions

View File

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

View File

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