]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Enable MFP by default for 6 GHz 11s mesh
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Thu, 9 Sep 2021 17:46:15 +0000 (10:46 -0700)
committerJouni Malinen <j@w1.fi>
Tue, 9 Nov 2021 19:08:52 +0000 (21:08 +0200)
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 <pradeepc@codeaurora.org>
wpa_supplicant/mesh.c

index 4e9d89061d2b51fa724706f08dc44f5bdcd47bfc..7938b8b4903ef93703c6618122b601c55d21e716 100644 (file)
@@ -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: