@@ -10,6 +10,7 @@
#include "utils/includes.h"
#include "utils/common.h"
+#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "common/wpa_ctrl.h"
#include "hostapd.h"
@@ -734,7 +735,7 @@ static int hostapd_dfs_start_channel_switch(struct hostapd_iface *iface)
skip_radar);
if (!channel) {
/* FIXME: Wait for channel(s) to become available */
- hostapd_disable_iface(iface);
+ eloop_terminate();
return err;
}
@@ -776,7 +777,7 @@ static int hostapd_dfs_start_channel_switch(struct hostapd_iface *iface)
if (err) {
wpa_printf(MSG_ERROR, "DFS failed to calculate CSA freq params");
- hostapd_disable_iface(iface);
+ eloop_terminate();
return err;
}