From 70f3c3001b60ddc4253588b83568c9ceb65703f1 Mon Sep 17 00:00:00 2001 From: Amir Patel Date: Tue, 21 May 2019 12:49:35 +0530 Subject: [PATCH] qcacmn: Update Access category stats only for data TIDs Currently AC stats are getting updated for data tid as well as non-data tid. Add check to update stats only for data tids CRs-Fixed: 2455781 Change-Id: I69d7a11f0101a5c3c6c7e5b0df3e190437990188 --- dp/wifi3.0/dp_htt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_htt.c b/dp/wifi3.0/dp_htt.c index a741802b80c4..83c2842bae6c 100644 --- a/dp/wifi3.0/dp_htt.c +++ b/dp/wifi3.0/dp_htt.c @@ -202,7 +202,9 @@ dp_tx_stats_update(struct dp_soc *soc, struct dp_peer *peer, DP_STATS_INC(peer, tx.sgi_count[ppdu->gi], num_msdu); DP_STATS_INC(peer, tx.bw[ppdu->bw], num_msdu); DP_STATS_INC(peer, tx.nss[ppdu->nss], num_msdu); - DP_STATS_INC(peer, tx.wme_ac_type[TID_TO_WME_AC(ppdu->tid)], num_msdu); + if (ppdu->tid < CDP_DATA_TID_MAX) + DP_STATS_INC(peer, tx.wme_ac_type[TID_TO_WME_AC(ppdu->tid)], + num_msdu); DP_STATS_INCC(peer, tx.stbc, num_msdu, ppdu->stbc); DP_STATS_INCC(peer, tx.ldpc, num_msdu, ppdu->ldpc); if (!(ppdu->is_mcast) && ppdu->ack_rssi_valid)