]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: do not drop packets smaller than the LLC-SNAP header on fast-rx
authorFelix Fietkau <nbd@nbd.name>
Fri, 7 Oct 2022 09:05:09 +0000 (11:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 12:38:58 +0000 (14:38 +0200)
commitfc62f3bd85595041a080ddac02e4a0ff57891f3d
tree3fcdaa64f06e28614d578d32112fc22051759490
parent406ed2ecb22acbd296d11d2bd85ae259d127ee86
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 <chad.monroe@smartrg.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c