qcacmn: PPDU stats debug enhancement

1. Assert if length received from FW is not equal to
   the expected length
2. Count the number of PPDU stats received by host and
   print in "iwpriv athX txrx_stats 260"
3. Optimize the PPDU stats tag mask sent to FW for
   enhanced stats enabling

Change-Id: I60019de93bb3914955a03546504efc820c960746
CRs-Fixed: 2170704
This commit is contained in:
Soumya Bhat
2018-02-08 21:02:57 +05:30
committed by snandini
parent cd67294973
commit 0d6245c0ac
4 changed files with 69 additions and 12 deletions

View File

@@ -70,6 +70,12 @@
#define CDP_MAX_RX_RINGS 4
/*
* Number of TLVs sent by FW. Needs to reflect
* HTT_PPDU_STATS_MAX_TAG declared in FW
*/
#define CDP_PPDU_STATS_MAX_TAG 14
/* Different Packet Types */
enum cdp_packet_type {
DOT11_A = 0,
@@ -407,6 +413,7 @@ struct cdp_pdev_stats {
struct cdp_hist_tx_comp tx_comp_histogram;
/* Number of Rx ring descriptors reaped per interrupt */
struct cdp_hist_rx_ind rx_ind_histogram;
uint64_t ppdu_stats_counter[CDP_PPDU_STATS_MAX_TAG];
};
#ifndef BIG_ENDIAN_HOST