aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-03-06 19:41:44 (GMT)
committerJouni Malinen <j@w1.fi>2019-03-06 19:52:43 (GMT)
commitfc30f99b34b0c7a62a74385f533f268299ea0b02 (patch)
tree8bd2f91be2efca300b838c49016608099d385622 /hostapd/config_file.c
parentb9cd4f5e75dc4a7aa3b547925cfb871b6aa103f7 (diff)
downloadhostap-fc30f99b34b0c7a62a74385f533f268299ea0b02.zip
hostap-fc30f99b34b0c7a62a74385f533f268299ea0b02.tar.gz
hostap-fc30f99b34b0c7a62a74385f533f268299ea0b02.tar.bz2
WPS: Allow AP SAE configuration to be added automatically for PSK
The new hostapd configuration parameter wps_cred_add_sae=1 can be used to request hostapd to add SAE configuration whenever WPS is used to configure the AP to use WPA2-PSK and the credential includes a passphrase (instead of PSK). This can be used to enable WPA3-Personal transition mode with both SAE and PSK enabled and PMF enabled for PSK and required for SAE associations. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 70cad76..5ddfbfb 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3612,6 +3612,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
}
} else if (os_strcmp(buf, "wps_cred_processing") == 0) {
bss->wps_cred_processing = atoi(pos);
+ } else if (os_strcmp(buf, "wps_cred_add_sae") == 0) {
+ bss->wps_cred_add_sae = atoi(pos);
} else if (os_strcmp(buf, "ap_settings") == 0) {
os_free(bss->ap_settings);
bss->ap_settings =