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:
Roy Luo
2019-02-26 12:26:02 +01:00
committed by Felix Fietkau
parent ffe1292877
commit e2a9d40772
+1 -1
View File
@@ -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;
}