/** * hostapd_config_free - Free hostapd configuration * @conf: Configuration data from hostapd_config_read(). */ void hostapd_config_free(struct hostapd_config *conf) { size_t i; if (conf == NULL) return; for (i = 0; i < conf->num_bss; i++) hostapd_config_free_bss(&conf->bss[i]); os_free(conf->bss); os_free(conf->supported_rates); os_free(conf->basic_rates); os_free(conf); }
/** * hostapd_config_free - Free hostapd configuration * @conf: Configuration data from hostapd_config_read(). */ void hostapd_config_free(struct hostapd_config *conf) { size_t i; if (conf == NULL) return; for (i = 0; i < conf->num_bss; i++) hostapd_config_free_bss(conf->bss[i]); os_free(conf->bss); os_free(conf->supported_rates); os_free(conf->basic_rates); os_free(conf->acs_ch_list.range); os_free(conf->driver_params); #ifdef CONFIG_ACS os_free(conf->acs_chan_bias); #endif /* CONFIG_ACS */ os_free(conf); }