mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: fix ba window size selection
The tx ba window size which is set to HW should not exceed the actual window size of the ba session, otherwise the HW might aggregate more packets than what's negotiated. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -397,7 +397,7 @@ void mt7603_mac_tx_ba_reset(struct mt7603_dev *dev, int wcid, int tid, int ssn,
|
||||
mt7603_mac_start(dev);
|
||||
|
||||
for (i = 7; i > 0; i--) {
|
||||
if (ba_size < MT_AGG_SIZE_LIMIT(i))
|
||||
if (ba_size >= MT_AGG_SIZE_LIMIT(i))
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user