]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused hostapd_cleanup_iface_pre()
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 6 Nov 2013 10:44:54 +0000 (12:44 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 6 Nov 2013 10:44:54 +0000 (12:44 +0200)
This has not been used in years and can be removed to clean up the
hostapd deinit path a bit.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/ap/hostapd.c

index edc7e039daa1dbd18b78dc76777f0f4ae38ba317..44fed6eb98724d49f3da8e225f33a300d907efc1 100644 (file)
@@ -295,10 +295,8 @@ static void hostapd_free_hapd_data(struct hostapd_data *hapd)
  * @hapd: Pointer to BSS data
  *
  * This function is used to free all per-BSS data structures and resources.
- * This gets called in a loop for each BSS between calls to
- * hostapd_cleanup_iface_pre() and hostapd_cleanup_iface() when an interface
- * is deinitialized. Most of the modules that are initialized in
- * hostapd_setup_bss() are deinitialized here.
+ * Most of the modules that are initialized in hostapd_setup_bss() are
+ * deinitialized here.
  */
 static void hostapd_cleanup(struct hostapd_data *hapd)
 {
@@ -310,18 +308,6 @@ static void hostapd_cleanup(struct hostapd_data *hapd)
 }
 
 
-/**
- * hostapd_cleanup_iface_pre - Preliminary per-interface cleanup
- * @iface: Pointer to interface data
- *
- * This function is called before per-BSS data structures are deinitialized
- * with hostapd_cleanup().
- */
-static void hostapd_cleanup_iface_pre(struct hostapd_iface *iface)
-{
-}
-
-
 static void hostapd_cleanup_iface_partial(struct hostapd_iface *iface)
 {
        wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface);
@@ -1277,7 +1263,6 @@ void hostapd_interface_deinit(struct hostapd_iface *iface)
        eloop_cancel_timeout(channel_list_update_timeout, iface, NULL);
        iface->wait_channel_update = 0;
 
-       hostapd_cleanup_iface_pre(iface);
        for (j = iface->num_bss - 1; j >= 0; j--) {
                struct hostapd_data *hapd = iface->bss[j];
                wpa_printf(MSG_DEBUG, "%s: deinit bss %s", __func__,