• Home
  • Raw
  • Download

Lines Matching refs:interfaces

47 int hostapd_for_each_interface(struct hapd_interfaces *interfaces,  in hostapd_for_each_interface()  argument
54 for (i = 0; i < interfaces->count; i++) { in hostapd_for_each_interface()
55 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface()
161 if (iface->interfaces == NULL || in hostapd_reload_config()
162 iface->interfaces->config_read_cb == NULL) in hostapd_reload_config()
164 newconf = iface->interfaces->config_read_cb(iface->config_fname); in hostapd_reload_config()
334 if (hapd->iface->interfaces && in hostapd_cleanup()
335 hapd->iface->interfaces->ctrl_iface_deinit) in hostapd_cleanup()
336 hapd->iface->interfaces->ctrl_iface_deinit(hapd); in hostapd_cleanup()
975 if (!hapd->iface->interfaces || in start_ctrl_iface_bss()
976 !hapd->iface->interfaces->ctrl_iface_init) in start_ctrl_iface_bss()
979 if (hapd->iface->interfaces->ctrl_iface_init(hapd)) { in start_ctrl_iface_bss()
994 if (!iface->interfaces || !iface->interfaces->ctrl_iface_init) in start_ctrl_iface()
999 if (iface->interfaces->ctrl_iface_init(hapd)) { in start_ctrl_iface()
1148 if (iface->interfaces && iface->interfaces->terminate_on_error) in setup_interface2()
1284 if (iface->interfaces && iface->interfaces->terminate_on_error > 0) in hostapd_setup_interface_complete()
1285 iface->interfaces->terminate_on_error--; in hostapd_setup_interface_complete()
1293 if (iface->interfaces && iface->interfaces->terminate_on_error) in hostapd_setup_interface_complete()
1416 struct hostapd_iface * hostapd_init(struct hapd_interfaces *interfaces, in hostapd_init() argument
1432 conf = interfaces->config_read_cb(hapd_iface->config_fname); in hostapd_init()
1470 static int ifname_in_use(struct hapd_interfaces *interfaces, const char *ifname) in ifname_in_use() argument
1474 for (i = 0; i < interfaces->count; i++) { in ifname_in_use()
1475 struct hostapd_iface *iface = interfaces->iface[i]; in ifname_in_use()
1499 hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy, in hostapd_interface_init_bss() argument
1510 for (i = 0; i < interfaces->count; i++) { in hostapd_interface_init_bss()
1511 if (os_strcmp(interfaces->iface[i]->phy, phy) == 0) { in hostapd_interface_init_bss()
1512 iface = interfaces->iface[i]; in hostapd_interface_init_bss()
1527 conf = interfaces->config_read_cb(config_fname); in hostapd_interface_init_bss()
1537 if (ifname[0] != '\0' && ifname_in_use(interfaces, ifname)) { in hostapd_interface_init_bss()
1578 new_iface = iface = hostapd_init(interfaces, config_fname); in hostapd_interface_init_bss()
1582 iface->interfaces = interfaces; in hostapd_interface_init_bss()
1669 if (hapd_iface->interfaces == NULL || in hostapd_enable_iface()
1670 hapd_iface->interfaces->driver_init == NULL || in hostapd_enable_iface()
1671 hapd_iface->interfaces->driver_init(hapd_iface)) in hostapd_enable_iface()
1750 hostapd_iface_alloc(struct hapd_interfaces *interfaces) in hostapd_iface_alloc() argument
1754 iface = os_realloc_array(interfaces->iface, interfaces->count + 1, in hostapd_iface_alloc()
1758 interfaces->iface = iface; in hostapd_iface_alloc()
1759 hapd_iface = interfaces->iface[interfaces->count] = in hostapd_iface_alloc()
1766 interfaces->count++; in hostapd_iface_alloc()
1767 hapd_iface->interfaces = interfaces; in hostapd_iface_alloc()
1774 hostapd_config_alloc(struct hapd_interfaces *interfaces, const char *ifname, in hostapd_config_alloc() argument
1813 struct hapd_interfaces *interfaces, struct hostapd_config *conf) in hostapd_data_alloc() argument
1817 interfaces->iface[interfaces->count - 1]; in hostapd_data_alloc()
1836 hapd_iface->interfaces = interfaces; in hostapd_data_alloc()
1842 int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf) in hostapd_add_iface() argument
1862 hapd_iface = hostapd_interface_init_bss(interfaces, phy_name, in hostapd_add_iface()
1866 for (j = 0; j < interfaces->count; j++) { in hostapd_add_iface()
1867 if (interfaces->iface[j] == hapd_iface) in hostapd_add_iface()
1870 if (j == interfaces->count) { in hostapd_add_iface()
1872 tmp = os_realloc_array(interfaces->iface, in hostapd_add_iface()
1873 interfaces->count + 1, in hostapd_add_iface()
1879 interfaces->iface = tmp; in hostapd_add_iface()
1880 interfaces->iface[interfaces->count++] = hapd_iface; in hostapd_add_iface()
1885 if (interfaces->driver_init(hapd_iface) || in hostapd_add_iface()
1887 interfaces->count--; in hostapd_add_iface()
1922 for (i = 0; i < interfaces->count; i++) { in hostapd_add_iface()
1923 if (!os_strcmp(interfaces->iface[i]->conf->bss[0]->iface, in hostapd_add_iface()
1931 hapd_iface = hostapd_iface_alloc(interfaces); in hostapd_add_iface()
1938 if (conf_file && interfaces->config_read_cb) { in hostapd_add_iface()
1939 conf = interfaces->config_read_cb(conf_file); in hostapd_add_iface()
1944 conf = hostapd_config_alloc(interfaces, buf, ptr); in hostapd_add_iface()
1951 hapd_iface = hostapd_data_alloc(interfaces, conf); in hostapd_add_iface()
1974 if (hapd_iface->interfaces && in hostapd_add_iface()
1975 hapd_iface->interfaces->ctrl_iface_deinit) in hostapd_add_iface()
1976 hapd_iface->interfaces-> in hostapd_add_iface()
2027 int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf) in hostapd_remove_iface() argument
2032 for (i = 0; i < interfaces->count; i++) { in hostapd_remove_iface()
2033 hapd_iface = interfaces->iface[i]; in hostapd_remove_iface()
2044 while (k < (interfaces->count - 1)) { in hostapd_remove_iface()
2045 interfaces->iface[k] = in hostapd_remove_iface()
2046 interfaces->iface[k + 1]; in hostapd_remove_iface()
2049 interfaces->count--; in hostapd_remove_iface()