Ver código fonte

Merge "qca-wifi: Remove double validation of Tx Stats"

Linux Build Service Account 5 anos atrás
pai
commit
c31c165fa3
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      dp/src/dp_rate_stats.c

+ 1 - 6
dp/src/dp_rate_stats.c

@@ -309,7 +309,7 @@ wlan_peer_update_tx_rate_stats(struct wlan_soc_rate_stats_ctx *soc_stats_ctx,
 		stats_ctx = (struct wlan_peer_rate_stats_ctx *)
 				ppdu_user->cookie;
 
-		if (qdf_unlikely(!ppdu_user->tx_ratekbps ||
+		if (qdf_unlikely(!ppdu_user->tx_ratekbps || !ppdu_user->rix ||
 				 ppdu_user->rix > DP_RATE_TABLE_SIZE)) {
 			continue;
 		}
@@ -321,11 +321,6 @@ wlan_peer_update_tx_rate_stats(struct wlan_soc_rate_stats_ctx *soc_stats_ctx,
 			continue;
 		}
 
-		if (qdf_unlikely(!ppdu_user->tx_ratekbps || !ppdu_user->rix ||
-				 ppdu_user->rix > DP_RATE_TABLE_SIZE)) {
-			continue;
-		}
-
 		tx_stats = &stats_ctx->tx;
 		RATE_STATS_LOCK_ACQUIRE(&tx_stats->lock);