Browse Source

qca-wifi: add fils stat variables to apstats

use vdev_cp_stats api to set values for fils stats
for later use.
create new macro for fils to use it in get_priv_int api.

Change-Id: Ia8ce7646c9cfd7904fe7826ca6d3d36aa2f4c14e
Ruben Columbus 5 năm trước cách đây
mục cha
commit
0479f052dd

+ 1 - 0
tools/linux/cfg80211_ven_cmd.h

@@ -775,6 +775,7 @@ enum {
 	IEEE80211_PARAM_CURRENT_PP                 = 706, /* P Periodicity */
 	IEEE80211_PARAM_NO_ACT_VAPS                = 707, /* Active Vaps */
 	IEEE80211_PARAM_TX_VAP                     = 708, /* Current Tx Vap */
+	IEEE80211_PARAM_FILS_IS_ENABLE            = 709, /* Fils enable frames*/
 };
 
 enum {

+ 2 - 0
umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_defs.h

@@ -372,6 +372,8 @@ struct vdev_80211_stats {
 	uint64_t cs_prob_req_drops;
 	uint64_t cs_oob_probe_req_count;
 	uint64_t cs_wc_probe_req_drops;
+	uint64_t cs_fils_frames_sent;
+	uint64_t cs_fils_frames_sent_fail;
 };
 
 /**

+ 2 - 0
umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h

@@ -383,6 +383,8 @@ UCFG_VDEV_CP_STATS_SET_FUNCS(peer_delete_all_resp);
 UCFG_VDEV_CP_STATS_SET_FUNCS(prob_req_drops);
 UCFG_VDEV_CP_STATS_SET_FUNCS(oob_probe_req_count);
 UCFG_VDEV_CP_STATS_SET_FUNCS(wc_probe_req_drops);
+UCFG_VDEV_CP_STATS_SET_FUNCS(fils_frames_sent);
+UCFG_VDEV_CP_STATS_SET_FUNCS(fils_frames_sent_fail);
 
 #define UCFG_VDEV_CP_STATS_GET_FUNCS(field) \
 	static inline uint64_t \

+ 2 - 0
umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_utils_api.h

@@ -277,6 +277,8 @@ VDEV_CP_STATS_SET_FUNCS(peer_delete_all_resp);
 VDEV_CP_STATS_SET_FUNCS(prob_req_drops);
 VDEV_CP_STATS_SET_FUNCS(oob_probe_req_count);
 VDEV_CP_STATS_SET_FUNCS(wc_probe_req_drops);
+VDEV_CP_STATS_SET_FUNCS(fils_frames_sent);
+VDEV_CP_STATS_SET_FUNCS(fils_frames_sent_fail);
 
 #define VDEV_CP_STATS_GET_FUNCS(field) \
 	static inline uint64_t \