From e2a9d407729dcee97e42343f225a9aa6ee939415 Mon Sep 17 00:00:00 2001 From: Roy Luo Date: Tue, 19 Feb 2019 00:35:14 +0800 Subject: [PATCH] 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 --- mt7603/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7603/mac.c b/mt7603/mac.c index be694d39..0a011586 100644 --- a/mt7603/mac.c +++ b/mt7603/mac.c @@ -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; }