From: Jouni Malinen Date: Sun, 14 Mar 2021 16:51:43 +0000 (+0200) Subject: DPP: Add init/respond retries parameter configuration to hostapd X-Git-Tag: hostap_2_10~399 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a17937ca2befb5357e7550ad45020a05191f9c;p=thirdparty%2Fhostap.git 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 --- 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);