• Home
  • Raw
  • Download

Lines Matching refs:iface

99 			    hapd->conf->iface, MAC2STR(addr),  in hostapd_logger_cb()
104 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb()
157 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument
161 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init()
183 wpa_drivers[i]->global_init(iface->interfaces); in hostapd_driver_init()
196 params.ifname = hapd->conf->iface; in hostapd_driver_init()
200 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init()
201 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init()
204 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init()
205 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init()
225 iface->drv_flags = capa.flags; in hostapd_driver_init()
226 iface->smps_modes = capa.smps_modes; in hostapd_driver_init()
227 iface->probe_resp_offloads = capa.probe_resp_offloads; in hostapd_driver_init()
231 iface->extended_capa = capa.extended_capa; in hostapd_driver_init()
232 iface->extended_capa_mask = capa.extended_capa_mask; in hostapd_driver_init()
233 iface->extended_capa_len = capa.extended_capa_len; in hostapd_driver_init()
234 iface->drv_max_acl_mac_addrs = capa.max_acl_mac_addrs; in hostapd_driver_init()
240 hostapd_get_ext_capa(iface); in hostapd_driver_init()
265 struct hostapd_iface *iface; in hostapd_interface_init() local
269 iface = hostapd_init(interfaces, config_fname); in hostapd_interface_init()
270 if (!iface) in hostapd_interface_init()
274 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init()
275 sizeof(iface->conf->bss[0]->iface)); in hostapd_interface_init()
278 iface->interfaces = interfaces; in hostapd_interface_init()
281 if (iface->bss[0]->conf->logger_stdout_level > 0) in hostapd_interface_init()
282 iface->bss[0]->conf->logger_stdout_level--; in hostapd_interface_init()
285 if (iface->conf->bss[0]->iface[0] == '\0' && in hostapd_interface_init()
286 !hostapd_drv_none(iface->bss[0])) { in hostapd_interface_init()
290 hostapd_interface_deinit_free(iface); in hostapd_interface_init()
294 return iface; in hostapd_interface_init()
310 static int handle_reload_iface(struct hostapd_iface *iface, void *ctx) in handle_reload_iface() argument
312 if (hostapd_reload_config(iface) < 0) { in handle_reload_iface()
424 for (k = 0; k < ifaces->iface[i]->num_bss; k++) { in hostapd_global_run()
425 if (ifaces->iface[i]->bss[0]->conf->tnc) { in hostapd_global_run()
510 return hapd->conf->iface; in hostapd_msg_ifname_cb()
623 static int hostapd_periodic_call(struct hostapd_iface *iface, void *ctx) in hostapd_periodic_call() argument
625 hostapd_periodic_iface(iface); in hostapd_periodic_call()
791 interfaces.iface = os_calloc(interfaces.count + num_bss_configs, in main()
793 if (interfaces.iface == NULL) { in main()
825 interfaces.iface[i] = hostapd_interface_init(&interfaces, in main()
829 if (!interfaces.iface[i]) { in main()
834 interfaces.iface[i]->need_to_start_in_sync = 1; in main()
839 struct hostapd_iface *iface; in main() local
851 iface = hostapd_interface_init_bss(&interfaces, bss_config[i], in main()
853 if (iface == NULL) in main()
856 if (interfaces.iface[j] == iface) in main()
861 tmp = os_realloc_array(interfaces.iface, in main()
865 hostapd_interface_deinit_free(iface); in main()
868 interfaces.iface = tmp; in main()
869 interfaces.iface[interfaces.count++] = iface; in main()
883 if (hostapd_driver_init(interfaces.iface[i]) || in main()
884 hostapd_setup_interface(interfaces.iface[i])) in main()
910 if (!interfaces.iface[i]) in main()
912 interfaces.iface[i]->driver_ap_teardown = in main()
913 !!(interfaces.iface[i]->drv_flags & in main()
915 hostapd_interface_deinit_free(interfaces.iface[i]); in main()
917 os_free(interfaces.iface); in main()