mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
hostapd: Reuse hostapd_clear_old() for RELOAD command
Instead of duplicating the functionality and missing changes (like the hostapd_broadcast_wep_clear() call), use the hostapd_clear_old() function that was already used for the similar case with configuration file reload. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
32b62704fa
commit
9f104b0324
@ -1185,18 +1185,10 @@ 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_clear_old(hapd_iface);
|
||||||
hostapd_flush_old_stations(hapd_iface->bss[j],
|
for (j = 0; j < hapd_iface->num_bss; j++)
|
||||||
WLAN_REASON_PREV_AUTH_NOT_VALID);
|
|
||||||
|
|
||||||
#ifndef CONFIG_NO_RADIUS
|
|
||||||
/* TODO: update dynamic data based on changed configuration
|
|
||||||
* items (e.g., open/close sockets, etc.) */
|
|
||||||
radius_client_flush(hapd_iface->bss[j]->radius, 0);
|
|
||||||
#endif /* CONFIG_NO_RADIUS */
|
|
||||||
|
|
||||||
hostapd_reload_bss(hapd_iface->bss[j]);
|
hostapd_reload_bss(hapd_iface->bss[j]);
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user