hostapd-2.0/src/ap/hostapd.c
static void hostapd_cleanup(struct hostapd_data *hapd)
{
	if (hapd->iface->interfaces &&
	    hapd->iface->interfaces->ctrl_iface_deinit)
		hapd->iface->interfaces->ctrl_iface_deinit(hapd);
	hostapd_free_hapd_data(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.
 */
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.
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->interfaces &&
	    hapd->iface->interfaces->ctrl_iface_deinit)
		hapd->iface->interfaces->ctrl_iface_deinit(hapd);
	hostapd_free_hapd_data(hapd);
}
static void hostapd_cleanup ( struct hostapd_data * hapd ) { if ( hapd -> iface -> interfaces && hapd -> iface -> interfaces -> ctrl_iface_deinit ) hapd -> iface -> interfaces -> ctrl_iface_deinit ( hapd ) ; hostapd_free_hapd_data ( hapd ) ; }
hostapd_cleanup - Per-BSS cleanup (deinitialization)
 @hapd: Pointer to BSS data
hostapd_cleanup - Per - BSS cleanup ( deinitialization ) @hapd : Pointer to BSS data