Browse Source

qcacmn: Remove WDI event WDI_EVENT_UPDATE_DP_STATS from per pkt path

WDI event WDI_EVENT_UPDATE_DP_STATS is triggered for updation of peer
stats from both per packet and monitor path wherein per packet path is
applicable for MCC and monitor path is applicable for WIN.

Trigger for this event is flag protected under the macros
FEATURE_PERPKT_INFO and WDI_EVENT_ENABLE.

FEATURE_PERPKT_INFO is not defined for MCC.
With this, WDI event in per packet path is not triggered and hence unused.
Make changes to remove the unused code.

Change-Id: Ibcb0948b0ecae313270b6a173e243b2f27f1bbee
Harsh Kumar Bijlani 3 năm trước cách đây
mục cha
commit
a7e391e49f
2 tập tin đã thay đổi với 0 bổ sung20 xóa
  1. 0 14
      dp/wifi3.0/dp_rx.c
  2. 0 6
      dp/wifi3.0/dp_tx.c

+ 0 - 14
dp/wifi3.0/dp_rx.c

@@ -1803,20 +1803,6 @@ void dp_rx_msdu_stats_update(struct dp_soc *soc, qdf_nbuf_t nbuf,
 		      ((mcs >= MAX_MCS) && (pkt_type == DOT11_AX)));
 	DP_STATS_INCC(peer, rx.pkt_type[pkt_type].mcs_count[mcs], 1,
 		      ((mcs < MAX_MCS) && (pkt_type == DOT11_AX)));
-
-	if ((soc->process_rx_status) &&
-	    hal_rx_tlv_first_mpdu_get(soc->hal_soc, rx_tlv_hdr)) {
-#if defined(FEATURE_PERPKT_INFO) && WDI_EVENT_ENABLE
-		if (!vdev->pdev)
-			return;
-
-		dp_wdi_event_handler(WDI_EVENT_UPDATE_DP_STATS, vdev->pdev->soc,
-				     &peer->stats, peer->peer_id,
-				     UPDATE_PEER_STATS,
-				     vdev->pdev->pdev_id);
-#endif
-
-	}
 }
 
 #ifndef WDS_VENDOR_EXTENSION

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

@@ -3736,12 +3736,6 @@ dp_tx_update_peer_stats(struct dp_tx_desc_s *tx_desc,
 	DP_STATS_INCC(peer, tx.stbc, 1, ts->stbc);
 	DP_STATS_INCC(peer, tx.ldpc, 1, ts->ldpc);
 	DP_STATS_INCC(peer, tx.retries, 1, ts->transmit_cnt > 1);
-
-#if defined(FEATURE_PERPKT_INFO) && WDI_EVENT_ENABLE
-	dp_wdi_event_handler(WDI_EVENT_UPDATE_DP_STATS, pdev->soc,
-			     &peer->stats, ts->peer_id,
-			     UPDATE_PEER_STATS, pdev->pdev_id);
-#endif
 }
 
 #ifdef QCA_LL_TX_FLOW_CONTROL_V2