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 <pradeepc@codeaurora.org>
This commit is contained in:
Pradeep Kumar Chitrapu 2021-09-09 10:46:15 -07:00 committed by Jouni Malinen
parent d10a01e221
commit ab0af709df

View 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: