mac80211: skip mpath lookup also for control port tx
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Wed, 17 Jun 2020 08:26:36 +0000 (10:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Jun 2020 08:59:27 +0000 (10:59 +0200)
commit5af7fef39d7952c0f5551afa7b821ee7b6c9dd3d
tree97be8e08338cab868bd73fe48d06f9de8bbeaed7
parent78fb5b541b7ae57ac39187ccb3097e606004cf9b
mac80211: skip mpath lookup also for control port tx

When using 802.1X over mesh networks, at first an ordinary
mesh peering is established, then the 802.1X EAPOL dialog
happens, afterwards an authenticated mesh peering exchange
(AMPE) happens, finally the peering is complete and we can
set the STA authorized flag.

As 802.1X is an intermediate step here and key material is
not yet exchanged for stations we have to skip mesh path lookup
for these EAPOL frames. Otherwise the already configure mesh
group encryption key would be used to send a mesh path request
which no one can decipher, because we didn't already establish
key material on both peers, like with SAE and directly using AMPE.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
Link: https://lore.kernel.org/r/20200617082637.22670-2-markus.theil@tu-ilmenau.de
[remove pointless braces, remove unnecessary local variable,
 the list can only process one such frame (or its fragments)]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c