]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Set correct address for mesh default broadcast/multicast keys
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Fri, 12 Jun 2020 14:49:44 +0000 (16:49 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 10 Oct 2020 17:19:09 +0000 (20:19 +0300)
commit566ea1b7ce7853894c1d11a0f35979607ba9a729
tree625941557012b9a7f5790c7c9a8f2a514dd5cfb4
parent48aebcc31bad1f18c87f670c8a1d76dcf0b3b747
mesh: Set correct address for mesh default broadcast/multicast keys

wpa_drv_set_key() was called with a NULL address for IGTK and MGTK
before this patch. The nl80211 driver will then not add the
NL80211_KEY_DEFAULT_TYPE_MULTICAST flag for the key, which wrongly marks
this key also as a default unicast key in the Linux kernel.

With SAE this is no real problem in practice, as a pairwise key will be
negotiated in mesh mode, before the first data frame gets send. When
using IEEE 802.1X in a mesh network in the future, this gets a problem,
as Linux now will encrypt EAPOL frames with the default key, which is
also marked for unicast usage without this patch.

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
wpa_supplicant/mesh_rsn.c