Lines Matching defs:hapd_iface
161 struct hostapd_iface *hapd_iface = NULL;
166 hapd_iface = os_zalloc(sizeof(*hapd_iface));
167 if (hapd_iface == NULL)
170 hapd_iface->config_fname = os_strdup(config_file);
171 if (hapd_iface->config_fname == NULL)
174 conf = hostapd_config_read(hapd_iface->config_fname);
177 hapd_iface->conf = conf;
179 hapd_iface->num_bss = conf->num_bss;
180 hapd_iface->bss = os_calloc(conf->num_bss,
182 if (hapd_iface->bss == NULL)
186 hapd = hapd_iface->bss[i] =
187 hostapd_alloc_bss_data(hapd_iface, conf,
194 return hapd_iface;
199 if (hapd_iface) {
200 os_free(hapd_iface->config_fname);
201 os_free(hapd_iface->bss);
202 os_free(hapd_iface);