aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorHai Shalom <haishalom@google.com>2018-08-29 23:47:55 (GMT)
committerJouni Malinen <j@w1.fi>2018-09-02 09:30:37 (GMT)
commit560e30bf3b463507213c5f7c63a0b8b1d7120cf6 (patch)
tree051be37faae395bcaf62b88e3857d69ffab5238c /hostapd/config_file.c
parentb898b655824a5553cc1a4dde5e8ed4d628aacc08 (diff)
downloadhostap-560e30bf3b463507213c5f7c63a0b8b1d7120cf6.zip
hostap-560e30bf3b463507213c5f7c63a0b8b1d7120cf6.tar.gz
hostap-560e30bf3b463507213c5f7c63a0b8b1d7120cf6.tar.bz2
Parse sae_password option when CONFIG_SAE is enabled
Call to parse_sae_password was incorrectly depending on CONFIG_TESTING_OPTIONS and CONFIG_SAE. Should depend only on the latter. Fixes: 2377c1caef77 ("SAE: Allow SAE password to be configured separately (AP)") Signed-off-by: Hai Shalom <haishalom@google.com>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 0e86f10..b1ab13e 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3867,6 +3867,7 @@ static int hostapd_config_fill(struct hostapd_config *conf,
} else if (os_strcmp(buf, "sae_commit_override") == 0) {
wpabuf_free(bss->sae_commit_override);
bss->sae_commit_override = wpabuf_parse_bin(pos);
+#endif /* CONFIG_TESTING_OPTIONS */
#ifdef CONFIG_SAE
} else if (os_strcmp(buf, "sae_password") == 0) {
if (parse_sae_password(bss, pos) < 0) {
@@ -3875,7 +3876,6 @@ static int hostapd_config_fill(struct hostapd_config *conf,
return 1;
}
#endif /* CONFIG_SAE */
-#endif /* CONFIG_TESTING_OPTIONS */
} else if (os_strcmp(buf, "vendor_elements") == 0) {
if (parse_wpabuf_hex(line, buf, &bss->vendor_elements, pos))
return 1;