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 <ssramya@codeaurora.org>
This commit is contained in:
Sreeramya Soratkal 2021-08-05 18:06:25 +05:30 committed by Jouni Malinen
parent c3155a725d
commit 24774dcc2e

View file

@ -2069,6 +2069,7 @@ static void wpas_start_wps_go(struct wpa_supplicant *wpa_s,
is_p2p_6ghz_capable(wpa_s->global->p2p)) { is_p2p_6ghz_capable(wpa_s->global->p2p)) {
ssid->auth_alg |= WPA_AUTH_ALG_SAE; ssid->auth_alg |= WPA_AUTH_ALG_SAE;
ssid->key_mgmt = WPA_KEY_MGMT_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"); wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Use SAE auth_alg and key_mgmt");
} else { } else {
p2p_set_6ghz_dev_capab(wpa_s->global->p2p, false); p2p_set_6ghz_dev_capab(wpa_s->global->p2p, false);