Home | History | Annotate | Download | only in ap

Lines Matching refs:interfaces

47 int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
54 for (i = 0; i < interfaces->count; i++) {
55 ret = cb(interfaces->iface[i], ctx);
161 if (iface->interfaces == NULL ||
162 iface->interfaces->config_read_cb == NULL)
164 newconf = iface->interfaces->config_read_cb(iface->config_fname);
334 if (hapd->iface->interfaces &&
335 hapd->iface->interfaces->ctrl_iface_deinit)
336 hapd->iface->interfaces->ctrl_iface_deinit(hapd);
976 if (!hapd->iface->interfaces ||
977 !hapd->iface->interfaces->ctrl_iface_init)
980 if (hapd->iface->interfaces->ctrl_iface_init(hapd)) {
995 if (!iface->interfaces || !iface->interfaces->ctrl_iface_init)
1000 if (iface->interfaces->ctrl_iface_init(hapd)) {
1076 * Initialize control interfaces early to allow external monitoring of
1149 if (iface->interfaces && iface->interfaces->terminate_on_error)
1282 if (iface->interfaces && iface->interfaces->terminate_on_error > 0)
1283 iface->interfaces->terminate_on_error--;
1291 if (iface->interfaces && iface->interfaces->terminate_on_error)
1414 struct hostapd_iface * hostapd_init(struct hapd_interfaces *interfaces,
1430 conf = interfaces->config_read_cb(hapd_iface->config_fname);
1468 static int ifname_in_use(struct hapd_interfaces *interfaces, const char *ifname)
1472 for (i = 0; i < interfaces->count; i++) {
1473 struct hostapd_iface *iface = interfaces->iface[i];
1497 hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy,
1508 for (i = 0; i < interfaces->count; i++) {
1509 if (os_strcmp(interfaces->iface[i]->phy, phy) == 0) {
1510 iface = interfaces->iface[i];
1525 conf = interfaces->config_read_cb(config_fname);
1535 if (ifname[0] != '\0' && ifname_in_use(interfaces, ifname)) {
1576 new_iface = iface = hostapd_init(interfaces, config_fname);
1580 iface->interfaces = interfaces;
1667 if (hapd_iface->interfaces == NULL ||
1668 hapd_iface->interfaces->driver_init == NULL ||
1669 hapd_iface->interfaces->driver_init(hapd_iface))
1748 hostapd_iface_alloc(struct hapd_interfaces *interfaces)
1752 iface = os_realloc_array(interfaces->iface, interfaces->count + 1,
1756 interfaces->iface = iface;
1757 hapd_iface = interfaces->iface[interfaces->count] =
1764 interfaces->count++;
1765 hapd_iface->interfaces = interfaces;
1772 hostapd_config_alloc(struct hapd_interfaces *interfaces, const char *ifname,
1811 struct hapd_interfaces *interfaces, struct hostapd_config *conf)
1815 interfaces->iface[interfaces->count - 1];
1834 hapd_iface->interfaces = interfaces;
1840 int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf)
1860 hapd_iface = hostapd_interface_init_bss(interfaces, phy_name,
1864 for (j = 0; j < interfaces->count; j++) {
1865 if (interfaces->iface[j] == hapd_iface)
1868 if (j == interfaces->count) {
1870 tmp = os_realloc_array(interfaces->iface,
1871 interfaces->count + 1,
1877 interfaces->iface = tmp;
1878 interfaces->iface[interfaces->count++] = hapd_iface;
1883 if (interfaces->driver_init(hapd_iface) ||
1885 interfaces->count--;
1920 for (i = 0; i < interfaces->count; i++) {
1921 if (!os_strcmp(interfaces->iface[i]->conf->bss[0]->iface,
1929 hapd_iface = hostapd_iface_alloc(interfaces);
1936 if (conf_file && interfaces->config_read_cb) {
1937 conf = interfaces->config_read_cb(conf_file);
1942 conf = hostapd_config_alloc(interfaces, buf, ptr);
1949 hapd_iface = hostapd_data_alloc(interfaces, conf);
1972 if (hapd_iface->interfaces &&
1973 hapd_iface->interfaces->ctrl_iface_deinit)
1974 hapd_iface->interfaces->
2025 int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf)
2030 for (i = 0; i < interfaces->count; i++) {
2031 hapd_iface = interfaces->iface[i];
2042 while (k < (interfaces->count - 1)) {
2043 interfaces->iface[k] =
2044 interfaces->iface[k + 1];
2047 interfaces->count--;