]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix MLO address translation for multiple bss case
authorSriram R <quic_srirrama@quicinc.com>
Thu, 8 Dec 2022 04:00:50 +0000 (09:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 07:06:31 +0000 (08:06 +0100)
commit5253a680a1b2e77a6eb72abf726c959c492ed8b2
treef61b2705cc9620f7107c094d8e5feef5816d88a0
parent5ccadb8b7fb97a37ee684ae2da36e80b7b5f9acf
mac80211: Fix MLO address translation for multiple bss case

[ Upstream commit e03e9ea1a1bbd4aaa02c5e10dbdbfb4d68b5947c ]

When multiple interfaces are present in the local interface
list, new skb copy is taken before rx processing except for
the first interface. The address translation happens each
time only on the original skb since the hdr pointer is not
updated properly to the newly created skb.

As a result frames start to drop in userspace when address
based checks or search fails.

Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Link: https://lore.kernel.org/r/20221208040050.25922-1-quic_srirrama@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/rx.c