mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
hostapd: Validate configuration parameters on RELOAD command
Reject RELOAD control interface command if the dynamic configuration changes have resulted into a state where the configuration is invalid. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
eff0fd1ee8
commit
6f2db2fbdd
@ -1198,6 +1198,12 @@ int hostapd_reload_iface(struct hostapd_iface *hapd_iface)
|
|||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "Reload interface %s",
|
wpa_printf(MSG_DEBUG, "Reload interface %s",
|
||||||
hapd_iface->conf->bss[0]->iface);
|
hapd_iface->conf->bss[0]->iface);
|
||||||
|
for (j = 0; j < hapd_iface->num_bss; j++)
|
||||||
|
hostapd_set_security_params(hapd_iface->conf->bss[j]);
|
||||||
|
if (hostapd_config_check(hapd_iface->conf) < 0) {
|
||||||
|
wpa_printf(MSG_ERROR, "Updated configuration is invalid");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
hostapd_clear_old(hapd_iface);
|
hostapd_clear_old(hapd_iface);
|
||||||
for (j = 0; j < hapd_iface->num_bss; j++)
|
for (j = 0; j < hapd_iface->num_bss; j++)
|
||||||
hostapd_reload_bss(hapd_iface->bss[j]);
|
hostapd_reload_bss(hapd_iface->bss[j]);
|
||||||
|
Loading…
Reference in New Issue
Block a user