Browse Source

qcawifi: Remove unnecessary print from rate stats module

When rate tlvs are nor parsed or completion status is not okay,
still we indicate WDI_EVENT_TX_PPDU_DESC for other features
and it results into feeding invalid rate index stats to rate stats
module, which we can not processed, which is a valid scenario.
so just remove err print to avoid flooding cosole.

CRs-Fixed: 2446638
Change-Id: I451a68af18e92727802f78e23d94ab6ea31dd5bb
Amir Patel 6 years ago
parent
commit
2cf70b694b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      dp/src/dp_rate_stats.c

+ 1 - 2
dp/src/dp_rate_stats.c

@@ -289,9 +289,8 @@ wlan_peer_update_tx_rate_stats(struct wlan_soc_rate_stats_ctx *soc_stats_ctx,
 		tx_stats = &stats_ctx->tx;
 		tx_stats = &stats_ctx->tx;
 		RATE_STATS_LOCK_ACQUIRE(&tx_stats->lock);
 		RATE_STATS_LOCK_ACQUIRE(&tx_stats->lock);
 
 
-		if (qdf_unlikely(!ppdu_user->rix ||
+		if (qdf_unlikely(!ppdu_user->tx_ratekbps ||
 				 ppdu_user->rix > DP_RATE_TABLE_SIZE)) {
 				 ppdu_user->rix > DP_RATE_TABLE_SIZE)) {
-			qdf_warn("Invalid rate index, continue.");
 			RATE_STATS_LOCK_RELEASE(&tx_stats->lock);
 			RATE_STATS_LOCK_RELEASE(&tx_stats->lock);
 			continue;
 			continue;
 		}
 		}