From 72a17937ca2befb5357e7550ad45020a05191f9c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Mar 2021 18:51:43 +0200 Subject: [PATCH] DPP: Add init/respond retries parameter configuration to hostapd These parameters were already defined in struct hostapd_data, but there was no way of setting them. Add these to hostapd control interface similarly to the wpa_supplicant implementation. Signed-off-by: Jouni Malinen --- hostapd/ctrl_iface.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 05d6be6ff..62fa51e91 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -1511,6 +1511,16 @@ static int hostapd_ctrl_iface_set(struct hostapd_data *hapd, char *cmd) } else if (os_strcasecmp(cmd, "dpp_configurator_params") == 0) { os_free(hapd->dpp_configurator_params); hapd->dpp_configurator_params = os_strdup(value); + } else if (os_strcasecmp(cmd, "dpp_init_max_tries") == 0) { + hapd->dpp_init_max_tries = atoi(value); + } else if (os_strcasecmp(cmd, "dpp_init_retry_time") == 0) { + hapd->dpp_init_retry_time = atoi(value); + } else if (os_strcasecmp(cmd, "dpp_resp_wait_time") == 0) { + hapd->dpp_resp_wait_time = atoi(value); + } else if (os_strcasecmp(cmd, "dpp_resp_max_tries") == 0) { + hapd->dpp_resp_max_tries = atoi(value); + } else if (os_strcasecmp(cmd, "dpp_resp_retry_time") == 0) { + hapd->dpp_resp_retry_time = atoi(value); #endif /* CONFIG_DPP */ } else if (os_strcasecmp(cmd, "setband") == 0) { ret = hostapd_ctrl_iface_set_band(hapd, value);