]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Require PMF for P2P GO in the 6 GHz band
authorSreeramya Soratkal <ssramya@codeaurora.org>
Thu, 5 Aug 2021 12:36:25 +0000 (18:06 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Aug 2021 16:14:52 +0000 (19:14 +0300)
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 <ssramya@codeaurora.org>
wpa_supplicant/p2p_supplicant.c

index 62c9a26a3490a398e1bdbe3b1232aa311f45eafe..2e506867e3bd08795847506cbb070ec9aac3a477 100644 (file)
@@ -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);