Home | History | Annotate | Download | only in hostapd

Lines Matching refs:iface

47 	struct hostapd_iface **iface;
52 int (*cb)(struct hostapd_iface *iface,
59 ret = cb(interfaces->iface[i], ctx);
122 hapd->conf->iface, MAC2STR(addr),
126 hapd->conf->iface, module_str ? " " : "",
234 static int hostapd_driver_init(struct hostapd_iface *iface)
238 struct hostapd_data *hapd = iface->bss[0];
272 params.ifname = hapd->conf->iface;
278 params.num_bridge = hapd->iface->num_bss;
279 params.bridge = os_zalloc(hapd->iface->num_bss * sizeof(char *));
282 for (i = 0; i < hapd->iface->num_bss; i++) {
283 struct hostapd_data *bss = hapd->iface->bss[i];
301 iface->drv_flags = capa.flags;
302 iface->probe_resp_offloads = capa.probe_resp_offloads;
309 static void hostapd_interface_deinit_free(struct hostapd_iface *iface)
313 if (iface == NULL)
315 driver = iface->bss[0]->driver;
316 drv_priv = iface->bss[0]->drv_priv;
317 hostapd_interface_deinit(iface);
320 hostapd_interface_free(iface);
328 struct hostapd_iface *iface;
332 iface = hostapd_init(config_fname);
333 if (!iface)
335 iface->interfaces = interfaces;
338 if (iface->bss[0]->conf->logger_stdout_level > 0)
339 iface->bss[0]->conf->logger_stdout_level--;
342 if (hostapd_driver_init(iface) ||
343 hostapd_setup_interface(iface)) {
344 hostapd_interface_deinit_free(iface);
348 return iface;
364 static int handle_reload_iface(struct hostapd_iface *iface, void *ctx)
366 if (hostapd_reload_config(iface) < 0) {
479 for (k = 0; k < ifaces->iface[i]->num_bss; k++) {
480 if (ifaces->iface[i]->bss[0]->conf->tnc) {
544 return hapd->iconf->bss->iface;
614 interfaces.iface = os_zalloc(interfaces.count *
616 if (interfaces.iface == NULL) {
626 interfaces.iface[i] = hostapd_interface_init(&interfaces,
629 if (!interfaces.iface[i])
641 hostapd_interface_deinit_free(interfaces.iface[i]);
642 os_free(interfaces.iface);