From 24774dcc2e3fecfc372868478089c223e0cd27ab Mon Sep 17 00:00:00 2001 From: Sreeramya Soratkal Date: Thu, 5 Aug 2021 18:06:25 +0530 Subject: [PATCH] P2P: Require PMF for P2P GO in the 6 GHz band Enable (and require) the management frame protection for the P2P GO if it is started on a 6 GHz channel. Signed-off-by: Sreeramya Soratkal --- wpa_supplicant/p2p_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 62c9a26a3..2e506867e 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -2069,6 +2069,7 @@ static void wpas_start_wps_go(struct wpa_supplicant *wpa_s, is_p2p_6ghz_capable(wpa_s->global->p2p)) { ssid->auth_alg |= WPA_AUTH_ALG_SAE; ssid->key_mgmt = WPA_KEY_MGMT_SAE; + ssid->ieee80211w = MGMT_FRAME_PROTECTION_REQUIRED; wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Use SAE auth_alg and key_mgmt"); } else { p2p_set_6ghz_dev_capab(wpa_s->global->p2p, false);