From: Pradeep Kumar Chitrapu Date: Thu, 9 Sep 2021 17:46:15 +0000 (-0700) Subject: mesh: Enable MFP by default for 6 GHz 11s mesh X-Git-Tag: hostap_2_10~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab0af709dfcf2906c69038555aa3e72a182b1409;p=thirdparty%2Fhostap.git mesh: Enable MFP by default for 6 GHz 11s mesh IEEE Std 802.11ax-2021 mandates 6 GHz STA to use Management Frame Protection (MFP) when RSN is enabled. Signed-off-by: Pradeep Kumar Chitrapu --- diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c index 4e9d89061..7938b8b49 100644 --- a/wpa_supplicant/mesh.c +++ b/wpa_supplicant/mesh.c @@ -438,6 +438,13 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s, goto out_free; if (is_6ghz_freq(freq->freq)) { + /* + * IEEE Std 802.11ax-2021, 12.12.2: + * The STA shall use management frame protection (MFPR=1) when + * using RSN. + */ + ssid->ieee80211w = MGMT_FRAME_PROTECTION_REQUIRED; + /* Set mandatory op_class parameter for setting up BSS */ switch (freq->bandwidth) { case 20: