• Home
  • Raw
  • Download

Lines Matching refs:iface

95 			    hapd->conf->iface, MAC2STR(addr),  in hostapd_logger_cb()
100 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb()
149 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument
153 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init()
175 wpa_drivers[i]->global_init(iface->interfaces); in hostapd_driver_init()
188 params.ifname = hapd->conf->iface; in hostapd_driver_init()
192 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init()
193 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init()
196 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init()
197 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init()
217 iface->drv_flags = capa.flags; in hostapd_driver_init()
218 iface->smps_modes = capa.smps_modes; in hostapd_driver_init()
219 iface->probe_resp_offloads = capa.probe_resp_offloads; in hostapd_driver_init()
220 iface->extended_capa = capa.extended_capa; in hostapd_driver_init()
221 iface->extended_capa_mask = capa.extended_capa_mask; in hostapd_driver_init()
222 iface->extended_capa_len = capa.extended_capa_len; in hostapd_driver_init()
223 iface->drv_max_acl_mac_addrs = capa.max_acl_mac_addrs; in hostapd_driver_init()
248 struct hostapd_iface *iface; in hostapd_interface_init() local
252 iface = hostapd_init(interfaces, config_fname); in hostapd_interface_init()
253 if (!iface) in hostapd_interface_init()
255 iface->interfaces = interfaces; in hostapd_interface_init()
258 if (iface->bss[0]->conf->logger_stdout_level > 0) in hostapd_interface_init()
259 iface->bss[0]->conf->logger_stdout_level--; in hostapd_interface_init()
262 if (iface->conf->bss[0]->iface[0] == '\0' && in hostapd_interface_init()
263 !hostapd_drv_none(iface->bss[0])) { in hostapd_interface_init()
266 hostapd_interface_deinit_free(iface); in hostapd_interface_init()
270 return iface; in hostapd_interface_init()
286 static int handle_reload_iface(struct hostapd_iface *iface, void *ctx) in handle_reload_iface() argument
288 if (hostapd_reload_config(iface) < 0) { in handle_reload_iface()
398 for (k = 0; k < ifaces->iface[i]->num_bss; k++) { in hostapd_global_run()
399 if (ifaces->iface[i]->bss[0]->conf->tnc) { in hostapd_global_run()
479 return hapd->conf->iface; in hostapd_msg_ifname_cb()
555 static int hostapd_periodic_call(struct hostapd_iface *iface, void *ctx) in hostapd_periodic_call() argument
557 hostapd_periodic_iface(iface); in hostapd_periodic_call()
697 interfaces.iface = os_calloc(interfaces.count + num_bss_configs, in main()
699 if (interfaces.iface == NULL) { in main()
726 interfaces.iface[i] = hostapd_interface_init(&interfaces, in main()
729 if (!interfaces.iface[i]) { in main()
734 interfaces.iface[i]->need_to_start_in_sync = 1; in main()
739 struct hostapd_iface *iface; in main() local
751 iface = hostapd_interface_init_bss(&interfaces, bss_config[i], in main()
753 if (iface == NULL) in main()
756 if (interfaces.iface[j] == iface) in main()
761 tmp = os_realloc_array(interfaces.iface, in main()
765 hostapd_interface_deinit_free(iface); in main()
768 interfaces.iface = tmp; in main()
769 interfaces.iface[interfaces.count++] = iface; in main()
783 if (hostapd_driver_init(interfaces.iface[i]) || in main()
784 hostapd_setup_interface(interfaces.iface[i])) in main()
801 if (!interfaces.iface[i]) in main()
803 interfaces.iface[i]->driver_ap_teardown = in main()
804 !!(interfaces.iface[i]->drv_flags & in main()
806 hostapd_interface_deinit_free(interfaces.iface[i]); in main()
808 os_free(interfaces.iface); in main()