wifi: mac80211: fix mesh path discovery based on unicast packets
authorFelix Fietkau <nbd@nbd.name>
Tue, 14 Mar 2023 09:59:52 +0000 (10:59 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 22 Mar 2023 12:46:46 +0000 (13:46 +0100)
commitf355f70145744518ca1d9799b42f4a8da9aa0d36
treed2276d616ab856f992bca872cd45c86c1b15b4b3
parent4e348c6c6e23491ae6eb5e077848a42d0562339c
wifi: mac80211: fix mesh path discovery based on unicast packets

If a packet has reached its intended destination, it was bumped to the code
that accepts it, without first checking if a mesh_path needs to be created
based on the discovered source.
Fix this by moving the destination address check further down.

Cc: stable@vger.kernel.org
Fixes: 986e43b19ae9 ("wifi: mac80211: fix receiving A-MSDU frames on mesh interfaces")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20230314095956.62085-3-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c