Переглянути джерело

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 роки тому
батько
коміт
45d282c2a8
1 змінених файлів з 2 додано та 1 видалено
  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,