qcacmn: Add control frame stats accounting support

Add control frame stats accounting support.
Accumulate both per peer BAR and NDPA counts in Tx and Rx per PPDU stats
path. Accumulate per peer RTS success and failure count only in per PPDU
Tx stats path.

Change-Id: I78fb3546cd831559e208a7330feb2eb67b9a28de
CRs-Fixed: 3313435
This commit is contained in:
Subrat Mishra
2022-10-14 16:37:57 +05:30
committed by Madan Koyyalamudi
parent abbf1c968a
commit 92fc6fa7c1
12 changed files with 210 additions and 0 deletions

View File

@@ -1199,6 +1199,15 @@ struct hal_rx_u_sig_info {
num_eht_sig_sym : 5;
};
#ifdef WLAN_SUPPORT_CTRL_FRAME_STATS
struct hal_rx_user_ctrl_frm_info {
uint8_t bar : 1,
ndpa : 1;
};
#else
struct hal_rx_user_ctrl_frm_info {};
#endif /* WLAN_SUPPORT_CTRL_FRAME_STATS */
struct hal_rx_ppdu_info {
struct hal_rx_ppdu_common_info com_info;
struct hal_rx_u_sig_info u_sig_info;
@@ -1263,6 +1272,8 @@ struct hal_rx_ppdu_info {
TAILQ_ENTRY(hal_rx_ppdu_info) ppdu_free_list_elem;
/* placeholder to track if RX_HDR is received */
uint8_t rx_hdr_rcvd[HAL_MAX_UL_MU_USERS];
/* Per user BAR and NDPA bit flag */
struct hal_rx_user_ctrl_frm_info ctrl_frm_info[HAL_MAX_UL_MU_USERS];
};
static inline uint32_t