summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07bcdbb)
raw | patch | inline | side by side (parent: 07bcdbb)
author | Shan Palanisamy <shanp@qca.qualcomm.com> | |
Thu, 16 Feb 2012 17:47:14 +0000 (19:47 +0200) | ||
committer | Jouni Malinen <j@w1.fi> | |
Thu, 16 Feb 2012 17:47:14 +0000 (19:47 +0200) |
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/hostapd.c | patch | blob | history |
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index 6efc52dd927d6f1ad4a8ed9e230fc60503d3ed60..21a7358365d6bb23a7cd8f1254c30526fc873757 100644 (file)
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
return errors;
}
-/**
- * hostapd_cleanup - Per-BSS cleanup (deinitialization)
- * @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.
- */
-static void hostapd_cleanup(struct hostapd_data *hapd)
-{
- if (hapd->iface->ctrl_iface_deinit)
- hapd->iface->ctrl_iface_deinit(hapd);
+static void hostapd_free_hapd_data(struct hostapd_data *hapd)
+{
iapp_deinit(hapd->iapp);
hapd->iapp = NULL;
accounting_deinit(hapd);
}
+/**
+ * hostapd_cleanup - Per-BSS cleanup (deinitialization)
+ * @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.
+ */
+static void hostapd_cleanup(struct hostapd_data *hapd)
+{
+ if (hapd->iface->ctrl_iface_deinit)
+ hapd->iface->ctrl_iface_deinit(hapd);
+ hostapd_free_hapd_data(hapd);
+}
+
+
/**
* hostapd_cleanup_iface_pre - Preliminary per-interface cleanup
* @iface: Pointer to interface data