ソースを参照

qcacmn: update tx rate stats only for transmitted packet

Fix issue, update tx rate stats only for transmitted packet

Change-Id: Ice13c99bf82380d56759eb180e774ffab21b66b0
nobelj 5 年 前
コミット
eaf0a8e1aa
1 ファイル変更3 行追加0 行削除
  1. 3 0
      dp/wifi3.0/dp_htt.c

+ 3 - 0
dp/wifi3.0/dp_htt.c

@@ -191,6 +191,9 @@ dp_tx_rate_stats_update(struct dp_peer *peer,
 	if (!peer || !ppdu)
 		return;
 
+	if (ppdu->completion_status != HTT_PPDU_STATS_USER_STATUS_OK)
+		return;
+
 	ratekbps = dp_getrateindex(ppdu->gi,
 				   ppdu->mcs,
 				   ppdu->nss,