Bladeren bron

qcacmn: Disable print FW Dropped byte in offload

Disable printing TX FW remove byte counter for NSS offload mode

Change-Id: I44cd80a4d07082f91cfdbfff9a9bc94d4c31bb86
Mainak Sen 5 jaren geleden
bovenliggende
commit
7258660417
1 gewijzigde bestanden met toevoegingen van 7 en 2 verwijderingen
  1. 7 2
      dp/wifi3.0/dp_stats.c

+ 7 - 2
dp/wifi3.0/dp_stats.c

@@ -4756,6 +4756,9 @@ void dp_print_peer_stats(struct dp_peer *peer)
 	uint32_t j;
 	char nss[DP_NSS_LENGTH];
 	char mu_group_id[DP_MU_GROUP_LENGTH];
+	struct dp_pdev *pdev;
+
+	pdev = peer->vdev->pdev;
 
 	DP_PRINT_STATS("Node Tx Stats:\n");
 	DP_PRINT_STATS("Total Packet Completions = %d",
@@ -4798,8 +4801,10 @@ void dp_print_peer_stats(struct dp_peer *peer)
 		       peer->stats.tx.last_ack_rssi);
 	DP_PRINT_STATS("Dropped At FW: Removed Pkts = %u",
 		       peer->stats.tx.dropped.fw_rem.num);
-	DP_PRINT_STATS("Dropped At FW: Removed bytes = %llu",
-		       peer->stats.tx.dropped.fw_rem.bytes);
+	if (pdev && !wlan_cfg_get_dp_pdev_nss_enabled(pdev->wlan_cfg_ctx)) {
+		DP_PRINT_STATS("Dropped At FW: Removed bytes = %llu",
+			peer->stats.tx.dropped.fw_rem.bytes);
+	}
 	DP_PRINT_STATS("Dropped At FW: Removed transmitted = %d",
 		       peer->stats.tx.dropped.fw_rem_tx);
 	DP_PRINT_STATS("Dropped At FW: Removed Untransmitted = %d",