mesh: Do not allow open mode key in 6 GHz

IEEE Std 802.11ax-2021, 12.12 explicitly disallows use of Open System
authentication without encryption on the 6 GHz band.

Signed-off-by: Sharadanand Karanjkar <skaranjkar@datto.com>
This commit is contained in:
Sharadanand Karanjkar 2022-04-05 15:51:18 +02:00 committed by Jouni Malinen
parent 50a9b7d3d3
commit 5da3e1ca44

View file

@ -53,6 +53,13 @@ static int wpa_config_validate_network(struct wpa_ssid *ssid, int line)
ssid->group_cipher &= ~WPA_CIPHER_CCMP;
}
if (is_6ghz_freq(ssid->frequency) && ssid->mode == WPAS_MODE_MESH &&
ssid->key_mgmt == WPA_KEY_MGMT_NONE) {
wpa_printf(MSG_ERROR,
"Line %d: key_mgmt for mesh network in 6 GHz should be SAE",
line);
errors++;
}
if (ssid->mode == WPAS_MODE_MESH &&
(ssid->key_mgmt != WPA_KEY_MGMT_NONE &&
ssid->key_mgmt != WPA_KEY_MGMT_SAE)) {