]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Add init/respond retries parameter configuration to hostapd
authorJouni Malinen <j@w1.fi>
Sun, 14 Mar 2021 16:51:43 +0000 (18:51 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Mar 2021 16:51:43 +0000 (18:51 +0200)
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 <j@w1.fi>
hostapd/ctrl_iface.c

index 05d6be6ffb0501e0ca6b70b70d53e0ba2dbbf432..62fa51e91c20aed39c1580380d70420fba4a81bc 100644 (file)
@@ -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);