diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-04-20 13:20:23 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-05-13 09:39:35 +0200 |
commit | 3968a66475b40691c37b5e6c76975f699671e10e (patch) | |
tree | f5e23377c43ebdd8977ee2215b065db85359d72f /drivers/net/wireless/mediatek/mt76/agg-rx.c | |
parent | 46f6adbfce18d868cd29f4c03a09c71f65c07507 (diff) | |
download | linux-stable-3968a66475b40691c37b5e6c76975f699671e10e.tar.gz linux-stable-3968a66475b40691c37b5e6c76975f699671e10e.tar.bz2 linux-stable-3968a66475b40691c37b5e6c76975f699671e10e.zip |
mt76: do not attempt to reorder received 802.3 packets without agg session
Fixes potential latency / packet drop issues in cases where a BA session has
not (yet) been established.
Fixes: e195dad14115 ("mt76: add support for 802.3 rx frames")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/agg-rx.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/agg-rx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/agg-rx.c b/drivers/net/wireless/mediatek/mt76/agg-rx.c index 9b8e1dfbc814..10cbd9e560e7 100644 --- a/drivers/net/wireless/mediatek/mt76/agg-rx.c +++ b/drivers/net/wireless/mediatek/mt76/agg-rx.c @@ -162,8 +162,9 @@ void mt76_rx_aggr_reorder(struct sk_buff *skb, struct sk_buff_head *frames) if (!sta) return; - if (!status->aggr && !(status->flag & RX_FLAG_8023)) { - mt76_rx_aggr_check_ctl(skb, frames); + if (!status->aggr) { + if (!(status->flag & RX_FLAG_8023)) + mt76_rx_aggr_check_ctl(skb, frames); return; } |