mt7603: fix aggregation size handling

Do not step over the 32 subframe limit.
Fix staying under the limit

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2018-11-21 19:04:19 +01:00
parent da666a74a6
commit 5fb60a7d7a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -389,7 +389,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;
}
+1 -1
View File
@@ -39,7 +39,7 @@
#define MT7603_EEPROM_SIZE 1024
#define MT_AGG_SIZE_LIMIT(n) ((4 + 2 * ((n) & 1)) << ((n) / 2))
#define MT_AGG_SIZE_LIMIT(_n) (((_n) + 1) * 4)
#define MT7603_PRE_TBTT_TIME 5000 /* ms */