Przeglądaj źródła

qcacmn: Set ack_rssi_valid to 1 for successful TX

The ack_rssi_valid flag to set to 1 only when completion_status
value is 0 which shows that the TX was successful.

Change-Id: I9e520422995e374d7d35b9db0c060d1fce2f9067
Viyom Mittal 6 lat temu
rodzic
commit
27fe1239d3
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      dp/wifi3.0/dp_htt.c

+ 2 - 1
dp/wifi3.0/dp_htt.c

@@ -2045,7 +2045,8 @@ static void dp_process_ppdu_stats_user_cmpltn_common_tlv(
 
 
 	tag_buf++;
-	if (qdf_likely(ppdu_user_desc->completion_status)) {
+	if (qdf_likely(ppdu_user_desc->completion_status ==
+			HTT_PPDU_STATS_USER_STATUS_OK)) {
 		ppdu_desc->ack_rssi = dp_stats_buf->ack_rssi;
 		ppdu_user_desc->ack_rssi_valid = 1;
 	} else {