blob: 23047f68c966be79927d46a2f3d4892d332c0af7 [file] [log] [blame]
developer6a1998b2022-12-08 18:09:45 +08001From: Felix Fietkau <nbd@nbd.name>
2Date: Fri, 7 Oct 2022 10:58:26 +0200
3Subject: [PATCH] wifi: mac80211: do not drop packets smaller than the
4 LLC-SNAP header on fast-rx
5
6Since STP TCN frames are only 7 bytes, the pskb_may_pull call returns an error.
7Instead of dropping those packets, bump them back to the slow path for proper
8processing.
9
10Fixes: 49ddf8e6e234 ("mac80211: add fast-rx path")
11Reported-by: Chad Monroe <chad.monroe@smartrg.com>
12Signed-off-by: Felix Fietkau <nbd@nbd.name>
13---
14
15--- a/net/mac80211/rx.c
16+++ b/net/mac80211/rx.c
17@@ -4603,7 +4603,7 @@ static bool ieee80211_invoke_fast_rx(str
18
19 if (!(status->rx_flags & IEEE80211_RX_AMSDU)) {
20 if (!pskb_may_pull(skb, snap_offs + sizeof(*payload)))
21- goto drop;
22+ return false;
23
24 payload = (void *)(skb->data + snap_offs);
25