Split hostapd_interface_deinit() into deinit and free parts
[libeap.git] / src / ap / hostapd.c
index 492c6a5..158c9b6 100644 (file)
@@ -822,6 +822,12 @@ void hostapd_interface_deinit(struct hostapd_iface *iface)
                hostapd_flush_old_stations(hapd);
                hostapd_cleanup(hapd);
        }
+}
+
+
+void hostapd_interface_free(struct hostapd_iface *iface)
+{
+       size_t j;
        for (j = 0; j < iface->num_bss; j++)
                os_free(iface->bss[j]);
        hostapd_cleanup_iface(iface);