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 <j@w1.fi>
This commit is contained in:
parent
f18b5542ad
commit
72a17937ca
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue