From c54818eb36e0299710e2db10fac7a82e16d9a9ab Mon Sep 17 00:00:00 2001 From: Shikha Bakshi Date: Fri, 5 Feb 2021 12:52:26 +0530 Subject: [PATCH] qcacmn: Add peer_unauth_rx_drop stat in cdp_pdev_stats Add the stat to count the numer of packets dropped when peer is unauthorized. Change-Id: I7d73f55541b0be4b172893221bb2c7ac8cf7b72e --- dp/inc/cdp_txrx_stats_struct.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dp/inc/cdp_txrx_stats_struct.h b/dp/inc/cdp_txrx_stats_struct.h index f314eb5aef..529f214a91 100644 --- a/dp/inc/cdp_txrx_stats_struct.h +++ b/dp/inc/cdp_txrx_stats_struct.h @@ -1939,6 +1939,7 @@ struct cdp_cfr_rcc_stats { * @ack_ba_comes_twice: stats counter for ack_ba_comes twice * @ppdu_drop: stats counter for ppdu_desc drop once threshold reached * @ppdu_wrap_drop: stats counter for ppdu desc drop on wrap around + * @peer_unauth_rx_pkt_drop: stats counter for drops due to unauthorized peer */ struct cdp_pdev_stats { struct { @@ -2018,6 +2019,8 @@ struct cdp_pdev_stats { uint64_t num_bufs_refilled; uint64_t num_bufs_allocated; } rx_refill_buff_pool; + + uint32_t peer_unauth_rx_pkt_drop; }; /* struct cdp_peer_hmwds_ast_add_status - hmwds peer ast add status