瀏覽代碼

qcacmn: Fix transmit type double increment and RU increment

transmit type is incremented twice on update status.
RU tone need to get increment for MIMO_OFDMA and OFDMA

Change-Id: I4e83a91b7653b7452cf5605b7f8aad956c355350
nobelj 6 年之前
父節點
當前提交
bc064fb1b9
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      dp/wifi3.0/dp_htt.c

+ 2 - 4
dp/wifi3.0/dp_htt.c

@@ -147,8 +147,6 @@ static void dp_tx_stats_update(struct dp_soc *soc, struct dp_peer *peer,
 	if (soc->process_tx_status)
 		return;
 
-	DP_STATS_INC(peer, tx.transmit_type[ppdu->ppdu_type], 1);
-
 	if (ppdu->mu_group_id <= MAX_MU_GROUP_ID && ppdu->ppdu_type != SU_TX) {
 		if (unlikely(!(ppdu->mu_group_id & (MAX_MU_GROUP_ID - 1))))
 			QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
@@ -158,7 +156,7 @@ static void dp_tx_stats_update(struct dp_soc *soc, struct dp_peer *peer,
 				     (ppdu->user_pos + 1));
 	}
 
-	if (ppdu->ppdu_type == MUMIMO_TX ||
+	if (ppdu->ppdu_type == MUOFDMA_TX ||
 	    ppdu->ppdu_type == MUMIMO_OFDMA_TX) {
 		DP_STATS_UPD(peer, tx.ru_tones, ppdu->ru_tones);
 		DP_STATS_UPD(peer, tx.ru_start, ppdu->ru_start);
@@ -184,7 +182,7 @@ static void dp_tx_stats_update(struct dp_soc *soc, struct dp_peer *peer,
 		}
 	}
 
-	DP_STATS_INC(peer, tx.transmit_type[ppdu->ppdu_type], 1);
+	DP_STATS_INC(peer, tx.transmit_type[ppdu->ppdu_type], num_msdu);
 	DP_STATS_INC_PKT(peer, tx.comp_pkt,
 			num_msdu, (ppdu->success_bytes +
 				ppdu->retry_bytes + ppdu->failed_bytes));