From 2f99d907266edc2e2cf73a044943448d5fc164eb Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 6 Nov 2013 00:43:10 +0200 Subject: [PATCH] Remove all BSSs on removal of the first one The changes in commit 5592065850a40e235020dba79e5592b949b829b8 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 --- src/ap/hostapd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 52be3110d..94aefe9f8 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -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;