From: Sreeramya Soratkal Date: Thu, 5 Aug 2021 12:36:25 +0000 (+0530) Subject: P2P: Require PMF for P2P GO in the 6 GHz band X-Git-Tag: hostap_2_10~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24774dcc2e3fecfc372868478089c223e0cd27ab;p=thirdparty%2Fhostap.git 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 --- 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);