mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Remove all BSSs on removal of the first one
The changes in commit 5592065850
to allow
any BSS to be removed were a bit too early since there are still number
of areas that use the first BSS as a special case. Especially the
driver_ops API is going to require quite a bit of cleanup before removal
of the first BSS without the other BSSes of the same radio can be done
safely.
For now, force all BSSs to be removed in case the first one is removed.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
149338020b
commit
2f99d90726
@ -1854,8 +1854,7 @@ int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf)
|
||||
hapd_iface = interfaces->iface[i];
|
||||
if (hapd_iface == NULL)
|
||||
return -1;
|
||||
if (hapd_iface->conf->num_bss == 1 &&
|
||||
!os_strcmp(hapd_iface->conf->bss[0]->iface, buf)) {
|
||||
if (!os_strcmp(hapd_iface->conf->bss[0]->iface, buf)) {
|
||||
wpa_printf(MSG_INFO, "Remove interface '%s'", buf);
|
||||
hostapd_interface_deinit_free(hapd_iface);
|
||||
k = i;
|
||||
|
Loading…
Reference in New Issue
Block a user