Explorar el Código

qca-wifi: fix issue in mpdu_tried_ucast WAR

The earlier WAR was not handling a corner case, where
ba_size equal to mpdu_tried_ucast -1.

This fix updates the check to handle it.

CRs-Fixed: 2813082
Change-Id: Ib69f8232e40ee31bc4a4a2b35ec9e8917195d123
Srinivas Pitla hace 4 años
padre
commit
4d05abaf4a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dp/wifi3.0/dp_tx_capture.c

+ 1 - 1
dp/wifi3.0/dp_tx_capture.c

@@ -1752,7 +1752,7 @@ void dp_process_ppdu_stats_update_failed_bitmap(struct dp_pdev *pdev,
 
 
 	/* mpdu_tried should be always higher than last ba bit in ba bitmap */
 	/* mpdu_tried should be always higher than last ba bit in ba bitmap */
 	if ((user->mpdu_tried_ucast) &&
 	if ((user->mpdu_tried_ucast) &&
-	    (user->mpdu_tried_ucast < last_set_bit)) {
+	    (user->mpdu_tried_ucast < (last_set_bit + 1))) {
 
 
 		for (i = 0; i < size; i++)
 		for (i = 0; i < size; i++)
 			mpdu_enq += get_number_of_1s(user->enq_bitmap[i]);
 			mpdu_enq += get_number_of_1s(user->enq_bitmap[i]);