Преглед на файлове

qcacmn: Enable update of per-peer statistics in MSDU Tx completions

Update of per-peer statistics was disabled from per-MSDU indications
as they are now updated from per-PPDU indications. However, the data from
per-PPDU indications is incorrect for some fields. Re-enable update of
statistics for per-MSDU completions till this issue is fixed in FW

Change-Id: I2983ef9244a6f95104ba49ab6d1c6543a951d0b2
CRs-Fixed: 2128230
Pamidipati, Vijay преди 7 години
родител
ревизия
bd9c13f2e8
променени са 3 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 1 1
      dp/inc/cdp_txrx_cmn_struct.h
  2. 6 0
      dp/wifi3.0/dp_htt.c
  3. 1 1
      dp/wifi3.0/dp_tx.c

+ 1 - 1
dp/inc/cdp_txrx_cmn_struct.h

@@ -169,8 +169,8 @@ enum cdp_host_txrx_stats {
  * @CDP_PPDU_FTYPE_CTRL: Control/Management Frames
 */
 enum cdp_ppdu_ftype {
-	CDP_PPDU_FTYPE_DATA,
 	CDP_PPDU_FTYPE_CTRL,
+	CDP_PPDU_FTYPE_DATA,
 	CDP_PPDU_FTYPE_MAX
 };
 

+ 6 - 0
dp/wifi3.0/dp_htt.c

@@ -59,6 +59,12 @@ static void dp_tx_stats_update(struct dp_soc *soc, struct dp_peer *peer,
 {
 	struct dp_pdev *pdev = peer->vdev->pdev;
 
+	/* If the peer statistics are already processed as part of
+	 * per-MSDU completion handler, do not process these again in per-PPDU
+	 * indications */
+	if (soc->process_tx_status)
+		return;
+
 	DP_STATS_INC_PKT(peer, tx.comp_pkt,
 			(ppdu->success_msdus + ppdu->retry_msdus +
 			 ppdu->failed_msdus),

+ 1 - 1
dp/wifi3.0/dp_tx.c

@@ -2609,7 +2609,7 @@ QDF_STATUS dp_tx_soc_attach(struct dp_soc *soc)
 	 * only for NPR EMU, should be removed, once NPR platforms
 	 * are stable.
 	 */
-	soc->process_tx_status = 0;
+	soc->process_tx_status = 1;
 
 	QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO,
 			"%s HAL Tx init Success\n", __func__);