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
diff --git a/dp/wifi3.0/dp_tx_capture.c b/dp/wifi3.0/dp_tx_capture.c
index 232cace..9e21854 100644
--- a/dp/wifi3.0/dp_tx_capture.c
+++ b/dp/wifi3.0/dp_tx_capture.c
@@ -1752,7 +1752,7 @@
/* mpdu_tried should be always higher than last ba bit in ba bitmap */
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++)
mpdu_enq += get_number_of_1s(user->enq_bitmap[i]);