• Home
  • Raw
  • Download

Lines Matching refs:interfaces

55 int hostapd_for_each_interface(struct hapd_interfaces *interfaces,  in hostapd_for_each_interface()  argument
62 for (i = 0; i < interfaces->count; i++) { in hostapd_for_each_interface()
63 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface()
168 if (iface->interfaces == NULL || in hostapd_reload_config()
169 iface->interfaces->config_read_cb == NULL) in hostapd_reload_config()
171 newconf = iface->interfaces->config_read_cb(iface->config_fname); in hostapd_reload_config()
353 if (hapd->iface->interfaces && in hostapd_cleanup()
354 hapd->iface->interfaces->ctrl_iface_deinit) in hostapd_cleanup()
355 hapd->iface->interfaces->ctrl_iface_deinit(hapd); in hostapd_cleanup()
1222 if (!hapd->iface->interfaces || in start_ctrl_iface_bss()
1223 !hapd->iface->interfaces->ctrl_iface_init) in start_ctrl_iface_bss()
1226 if (hapd->iface->interfaces->ctrl_iface_init(hapd)) { in start_ctrl_iface_bss()
1241 if (!iface->interfaces || !iface->interfaces->ctrl_iface_init) in start_ctrl_iface()
1246 if (iface->interfaces->ctrl_iface_init(hapd)) { in start_ctrl_iface()
1395 if (iface->interfaces && iface->interfaces->terminate_on_error) in setup_interface2()
1709 if (iface->interfaces && iface->interfaces->terminate_on_error > 0) in hostapd_setup_interface_complete_sync()
1710 iface->interfaces->terminate_on_error--; in hostapd_setup_interface_complete_sync()
1724 if (iface->interfaces && iface->interfaces->terminate_on_error) in hostapd_setup_interface_complete_sync()
1740 struct hapd_interfaces *interfaces = iface->interfaces; in hostapd_setup_interface_complete() local
1753 if (interfaces && interfaces->terminate_on_error) in hostapd_setup_interface_complete()
1763 for (i = 0; i < interfaces->count; i++) { in hostapd_setup_interface_complete()
1764 if (interfaces->iface[i]->need_to_start_in_sync && in hostapd_setup_interface_complete()
1765 !interfaces->iface[i]->ready_to_start_in_sync) in hostapd_setup_interface_complete()
1799 for (i = 0; i < interfaces->count; i++) { in hostapd_setup_interface_complete()
1800 if (interfaces->iface[i]->need_to_start_in_sync && in hostapd_setup_interface_complete()
1801 interfaces->iface[i]->ready_to_start_in_sync) { in hostapd_setup_interface_complete()
1803 interfaces->iface[i], 0); in hostapd_setup_interface_complete()
1805 interfaces->iface[i]->need_to_start_in_sync = 0; in hostapd_setup_interface_complete()
1941 struct hostapd_iface * hostapd_init(struct hapd_interfaces *interfaces, in hostapd_init() argument
1957 conf = interfaces->config_read_cb(hapd_iface->config_fname); in hostapd_init()
1995 static int ifname_in_use(struct hapd_interfaces *interfaces, const char *ifname) in ifname_in_use() argument
1999 for (i = 0; i < interfaces->count; i++) { in ifname_in_use()
2000 struct hostapd_iface *iface = interfaces->iface[i]; in ifname_in_use()
2024 hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy, in hostapd_interface_init_bss() argument
2035 for (i = 0; i < interfaces->count; i++) { in hostapd_interface_init_bss()
2036 if (os_strcmp(interfaces->iface[i]->phy, phy) == 0) { in hostapd_interface_init_bss()
2037 iface = interfaces->iface[i]; in hostapd_interface_init_bss()
2052 conf = interfaces->config_read_cb(config_fname); in hostapd_interface_init_bss()
2062 if (ifname[0] != '\0' && ifname_in_use(interfaces, ifname)) { in hostapd_interface_init_bss()
2103 new_iface = iface = hostapd_init(interfaces, config_fname); in hostapd_interface_init_bss()
2107 iface->interfaces = interfaces; in hostapd_interface_init_bss()
2194 if (hapd_iface->interfaces == NULL || in hostapd_enable_iface()
2195 hapd_iface->interfaces->driver_init == NULL || in hostapd_enable_iface()
2196 hapd_iface->interfaces->driver_init(hapd_iface)) in hostapd_enable_iface()
2275 hostapd_iface_alloc(struct hapd_interfaces *interfaces) in hostapd_iface_alloc() argument
2279 iface = os_realloc_array(interfaces->iface, interfaces->count + 1, in hostapd_iface_alloc()
2283 interfaces->iface = iface; in hostapd_iface_alloc()
2284 hapd_iface = interfaces->iface[interfaces->count] = in hostapd_iface_alloc()
2291 interfaces->count++; in hostapd_iface_alloc()
2292 hapd_iface->interfaces = interfaces; in hostapd_iface_alloc()
2299 hostapd_config_alloc(struct hapd_interfaces *interfaces, const char *ifname, in hostapd_config_alloc() argument
2387 int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf) in hostapd_add_iface() argument
2407 hapd_iface = hostapd_interface_init_bss(interfaces, phy_name, in hostapd_add_iface()
2411 for (j = 0; j < interfaces->count; j++) { in hostapd_add_iface()
2412 if (interfaces->iface[j] == hapd_iface) in hostapd_add_iface()
2415 if (j == interfaces->count) { in hostapd_add_iface()
2417 tmp = os_realloc_array(interfaces->iface, in hostapd_add_iface()
2418 interfaces->count + 1, in hostapd_add_iface()
2424 interfaces->iface = tmp; in hostapd_add_iface()
2425 interfaces->iface[interfaces->count++] = hapd_iface; in hostapd_add_iface()
2430 if (interfaces->driver_init(hapd_iface)) in hostapd_add_iface()
2474 for (i = 0; i < interfaces->count; i++) { in hostapd_add_iface()
2475 if (!os_strcmp(interfaces->iface[i]->conf->bss[0]->iface, in hostapd_add_iface()
2483 hapd_iface = hostapd_iface_alloc(interfaces); in hostapd_add_iface()
2491 if (conf_file && interfaces->config_read_cb) { in hostapd_add_iface()
2492 conf = interfaces->config_read_cb(conf_file); in hostapd_add_iface()
2501 conf = hostapd_config_alloc(interfaces, buf, ptr, driver); in hostapd_add_iface()
2534 if (hapd_iface->interfaces && in hostapd_add_iface()
2535 hapd_iface->interfaces->ctrl_iface_deinit) in hostapd_add_iface()
2536 hapd_iface->interfaces-> in hostapd_add_iface()
2549 interfaces->count--; in hostapd_add_iface()
2550 interfaces->iface[interfaces->count] = NULL; in hostapd_add_iface()
2592 int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf) in hostapd_remove_iface() argument
2597 for (i = 0; i < interfaces->count; i++) { in hostapd_remove_iface()
2598 hapd_iface = interfaces->iface[i]; in hostapd_remove_iface()
2609 while (k < (interfaces->count - 1)) { in hostapd_remove_iface()
2610 interfaces->iface[k] = in hostapd_remove_iface()
2611 interfaces->iface[k + 1]; in hostapd_remove_iface()
2614 interfaces->count--; in hostapd_remove_iface()
3096 struct hostapd_data * hostapd_get_iface(struct hapd_interfaces *interfaces, in hostapd_get_iface() argument
3101 for (i = 0; i < interfaces->count; i++) { in hostapd_get_iface()
3102 struct hostapd_iface *iface = interfaces->iface[i]; in hostapd_get_iface()