From f467ad38f16f547909c95d508cdab3dfe5c98945 Mon Sep 17 00:00:00 2001 From: nobelj Date: Tue, 11 Aug 2020 14:48:28 -0700 Subject: [PATCH] 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 --- dp/inc/cdp_txrx_extd_struct.h | 4 ++++ tools/linux/cfg80211_ven_cmd.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dp/inc/cdp_txrx_extd_struct.h b/dp/inc/cdp_txrx_extd_struct.h index 31b835af82..62ac855ffc 100644 --- a/dp/inc/cdp_txrx_extd_struct.h +++ b/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 */ diff --git a/tools/linux/cfg80211_ven_cmd.h b/tools/linux/cfg80211_ven_cmd.h index 5bfe78922e..7d293cbeb7 100644 --- a/tools/linux/cfg80211_ven_cmd.h +++ b/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