projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f4626c
)
wifi: cfg80211: fix receiving mesh packets without RFC1042 header
author
Felix Fietkau
<nbd@nbd.name>
Tue, 11 Jul 2023 11:50:52 +0000
(13:50 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 13 Jul 2023 01:03:40 +0000
(18:03 -0700)
Fix ethernet header length field after stripping the mesh header
Cc: stable@vger.kernel.org
Link:
https://lore.kernel.org/all/CT5GNZSK28AI.2K6M69OXM9RW5@syracuse/
Fixes: 986e43b19ae9 ("wifi: mac80211: fix receiving A-MSDU frames on mesh interfaces")
Reported-and-tested-by: Nicolas Escande <nico.escande@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link:
https://lore.kernel.org/r/20230711115052.68430-1-nbd@nbd.name
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/wireless/util.c
patch
|
blob
|
history
diff --git
a/net/wireless/util.c
b/net/wireless/util.c
index 89c9ad6c886e09fea2d8f842a6da952abbefba9f..1783ab9d57a3193bca80a6edd92824bdbc4c5022 100644
(file)
--- a/
net/wireless/util.c
+++ b/
net/wireless/util.c
@@
-580,6
+580,8
@@
int ieee80211_strip_8023_mesh_hdr(struct sk_buff *skb)
hdrlen += ETH_ALEN + 2;
else if (!pskb_may_pull(skb, hdrlen))
return -EINVAL;
+ else
+ payload.eth.h_proto = htons(skb->len - hdrlen);
mesh_addr = skb->data + sizeof(payload.eth) + ETH_ALEN;
switch (payload.flags & MESH_FLAGS_AE) {