aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-09-17 10:36:22 (GMT)
committerJouni Malinen <j@w1.fi>2019-09-18 21:21:47 (GMT)
commit5a5639b0682379606a465515a7a04825ba6f307b (patch)
tree09ff7f1c492baa29a607e98accfa89244df98833 /hostapd/config_file.c
parent91a07031579a88982a4a780126f7f0e3e74de3c7 (diff)
downloadhostap-5a5639b0682379606a465515a7a04825ba6f307b.zip
hostap-5a5639b0682379606a465515a7a04825ba6f307b.tar.gz
hostap-5a5639b0682379606a465515a7a04825ba6f307b.tar.bz2
DPP: Allow name and mudurl to be configured for Config Request
The new hostapd and wpa_supplicant configuration parameters dpp_name and dpp_mud_url can now be used to set a specific name and MUD URL for the Enrollee to use in the Configuration Request. dpp_name replaces the previously hardcoded "Test" string (which is still the default if an explicit configuration entry is not included). dpp_mud_url can optionally be used to add a MUD URL to describe the Enrollee device. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 0d340d2..db9d582 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -4327,6 +4327,12 @@ static int hostapd_config_fill(struct hostapd_config *conf,
} else if (os_strcmp(buf, "broadcast_deauth") == 0) {
bss->broadcast_deauth = atoi(pos);
#ifdef CONFIG_DPP
+ } else if (os_strcmp(buf, "dpp_name") == 0) {
+ os_free(bss->dpp_name);
+ bss->dpp_name = os_strdup(pos);
+ } else if (os_strcmp(buf, "dpp_mud_url") == 0) {
+ os_free(bss->dpp_mud_url);
+ bss->dpp_mud_url = os_strdup(pos);
} else if (os_strcmp(buf, "dpp_connector") == 0) {
os_free(bss->dpp_connector);
bss->dpp_connector = os_strdup(pos);