From: Felix Fietkau Date: Fri, 7 Oct 2022 09:05:09 +0000 (+0200) Subject: wifi: mac80211: do not drop packets smaller than the LLC-SNAP header on fast-rx X-Git-Tag: baikal/mips/sdk6.1~4606^2~14^2~12 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=fc62f3bd85595041a080ddac02e4a0ff57891f3d;p=kernel.git wifi: mac80211: do not drop packets smaller than the LLC-SNAP header on fast-rx Since STP TCN frames are only 7 bytes, the pskb_may_pull call returns an error. Instead of dropping those packets, bump them back to the slow path for proper processing. Fixes: 0106f1ab8251 ("mac80211: add fast-rx path") Reported-by: Chad Monroe Signed-off-by: Felix Fietkau Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index bd215fe3c7969..333adad47482c 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -4708,7 +4708,7 @@ static bool ieee80211_invoke_fast_rx(struct ieee80211_rx_data *rx, if (!(status->rx_flags & IEEE80211_RX_AMSDU)) { if (!pskb_may_pull(skb, snap_offs + sizeof(*payload))) - goto drop; + return false; payload = (void *)(skb->data + snap_offs);