Browse Source

qcacmn: Fix for correct per AC stats

Add ppdu tid tlv value assignment in cdp dp stats layer
ppdu tid value is used by apstats command it was earlier
showing zeroes

Change-Id: Id24b08d2424dcc09424624d84044b3963bd81b36
Anish Nataraj 7 years ago
parent
commit
45d282c2a8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dp/wifi3.0/dp_rx_mon_status.c

+ 2 - 1
dp/wifi3.0/dp_rx_mon_status.c

@@ -92,6 +92,8 @@ dp_rx_populate_cdp_indication_ppdu(struct dp_soc *soc,
 		cdp_rx_ppdu->is_ampdu = 1;
 	else
 		cdp_rx_ppdu->is_ampdu = 0;
+
+	cdp_rx_ppdu->tid = ppdu_info->rx_status.tid;
 }
 #else
 static inline void
@@ -173,7 +175,6 @@ static void dp_rx_stats_update(struct dp_soc *soc, struct dp_peer *peer,
 			rx.pkt_type[preamble].mcs_count[mcs], num_msdu,
 			((mcs < (MAX_MCS - 1)) && (preamble == DOT11_AX)));
 	DP_STATS_INC(peer, rx.wme_ac_type[TID_TO_WME_AC(ppdu->tid)], num_msdu);
-
 	if (soc->cdp_soc.ol_ops->update_dp_stats) {
 		soc->cdp_soc.ol_ops->update_dp_stats(pdev->osif_pdev,
 				&peer->stats, ppdu->peer_id,