mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
+1
-1
@@ -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
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user