+#endif
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
-@@ -265,6 +265,7 @@ static int hostapd_broadcast_wep_set(str
+@@ -241,6 +241,7 @@ static int hostapd_broadcast_wep_set(str
static void hostapd_free_hapd_data(struct hostapd_data *hapd)
{
iapp_deinit(hapd->iapp);
hapd->iapp = NULL;
accounting_deinit(hapd);
-@@ -830,6 +831,8 @@ static int hostapd_setup_bss(struct host
+@@ -806,6 +807,8 @@ static int hostapd_setup_bss(struct host
if (hapd->driver && hapd->driver->set_operstate)
hapd->driver->set_operstate(hapd->drv_priv, 1);
return 0;
}
-@@ -980,6 +983,7 @@ int hostapd_setup_interface_complete(str
+@@ -956,6 +959,7 @@ int hostapd_setup_interface_complete(str
if (err)
goto error;
wpa_printf(MSG_DEBUG, "Completing interface initialization");
if (hapd->iconf->channel) {
iface->freq = hostapd_hw_get_freq(hapd, hapd->iconf->channel);
-@@ -1072,6 +1076,7 @@ int hostapd_setup_interface_complete(str
+@@ -1048,6 +1052,7 @@ int hostapd_setup_interface_complete(str
error:
wpa_printf(MSG_ERROR, "Interface initialization failed");
eloop_terminate();
return -1;
}
-@@ -1170,6 +1175,8 @@ void hostapd_interface_deinit_free(struc
+@@ -1146,6 +1151,8 @@ void hostapd_interface_deinit_free(struc
void *drv_priv;
if (iface == NULL)
return;