• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/wpa/src/ap/

Lines Matching defs:interfaces

69 int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
76 for (i = 0; i < interfaces->count; i++) {
77 ret = cb(interfaces->iface[i], ctx);
204 struct hapd_interfaces *interfaces = iface->interfaces;
217 if (iface->interfaces == NULL ||
218 iface->interfaces->config_read_cb == NULL)
220 newconf = iface->interfaces->config_read_cb(iface->config_fname);
238 hostapd_remove_iface(interfaces, hapd->conf->iface);
239 iface = hostapd_init(interfaces, fname);
247 iface->interfaces = interfaces;
248 interfaces->iface[interfaces->count] = iface;
249 interfaces->count++;
459 if (hapd->iface->interfaces &&
460 hapd->iface->interfaces->ctrl_iface_deinit) {
462 hapd->iface->interfaces->ctrl_iface_deinit(hapd);
1449 if (!hapd->iface->interfaces ||
1450 !hapd->iface->interfaces->ctrl_iface_init)
1453 if (hapd->iface->interfaces->ctrl_iface_init(hapd)) {
1468 if (!iface->interfaces || !iface->interfaces->ctrl_iface_init)
1473 if (iface->interfaces->ctrl_iface_init(hapd)) {
1549 * Initialize control interfaces early to allow external monitoring of
1622 if (iface->interfaces && iface->interfaces->terminate_on_error)
1800 if (!hapd->iface->interfaces ||
1801 !hapd->iface->interfaces->for_each_interface)
1804 return hapd->iface->interfaces->for_each_interface(
1805 hapd->iface->interfaces, hostapd_owe_iface_iter, hapd);
1839 if (!iface->interfaces ||
1840 !iface->interfaces->for_each_interface)
1843 iface->interfaces->for_each_interface(
1844 iface->interfaces, hostapd_owe_iface_iter2, NULL);
2054 if (iface->interfaces && iface->interfaces->terminate_on_error > 0)
2055 iface->interfaces->terminate_on_error--;
2073 if (iface->interfaces && iface->interfaces->terminate_on_error) {
2099 struct hapd_interfaces *interfaces = iface->interfaces;
2112 if (interfaces && interfaces->terminate_on_error)
2122 for (i = 0; i < interfaces->count; i++) {
2123 if (interfaces->iface[i]->need_to_start_in_sync &&
2124 !interfaces->iface[i]->ready_to_start_in_sync)
2130 * waiting interfaces. If not, add this interface to the waiting list.
2145 /* need to wait as there are other interfaces still coming up */
2148 "%s: Interface waiting to sync with other interfaces",
2154 "%s: Last interface to sync - starting all interfaces",
2158 for (i = 0; i < interfaces->count; i++) {
2159 if (interfaces->iface[i]->need_to_start_in_sync &&
2160 interfaces->iface[i]->ready_to_start_in_sync) {
2162 interfaces->iface[i], 0);
2163 /* Only once the interfaces are sync started */
2164 interfaces->iface[i]->need_to_start_in_sync = 0;
2338 struct hostapd_iface * hostapd_init(struct hapd_interfaces *interfaces,
2354 conf = interfaces->config_read_cb(hapd_iface->config_fname);
2392 static int ifname_in_use(struct hapd_interfaces *interfaces, const char *ifname)
2396 for (i = 0; i < interfaces->count; i++) {
2397 struct hostapd_iface *iface = interfaces->iface[i];
2421 hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy,
2432 for (i = 0; i < interfaces->count; i++) {
2433 if (os_strcmp(interfaces->iface[i]->phy, phy) == 0) {
2434 iface = interfaces->iface[i];
2449 conf = interfaces->config_read_cb(config_fname);
2459 if (ifname[0] != '\0' && ifname_in_use(interfaces, ifname)) {
2500 new_iface = iface = hostapd_init(interfaces, config_fname);
2504 iface->interfaces = interfaces;
2595 if (hapd_iface->interfaces == NULL ||
2596 hapd_iface->interfaces->driver_init == NULL ||
2597 hapd_iface->interfaces->driver_init(hapd_iface))
2681 hostapd_iface_alloc(struct hapd_interfaces *interfaces)
2685 iface = os_realloc_array(interfaces->iface, interfaces->count + 1,
2689 interfaces->iface = iface;
2690 hapd_iface = interfaces->iface[interfaces->count] =
2697 interfaces->count++;
2698 hapd_iface->interfaces = interfaces;
2705 hostapd_config_alloc(struct hapd_interfaces *interfaces, const char *ifname,
2793 int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf)
2813 hapd_iface = hostapd_interface_init_bss(interfaces, phy_name,
2817 for (j = 0; j < interfaces->count; j++) {
2818 if (interfaces->iface[j] == hapd_iface)
2821 if (j == interfaces->count) {
2823 tmp = os_realloc_array(interfaces->iface,
2824 interfaces->count + 1,
2830 interfaces->iface = tmp;
2831 interfaces->iface[interfaces->count++] = hapd_iface;
2836 if (interfaces->driver_init(hapd_iface))
2881 for (i = 0; i < interfaces->count; i++) {
2882 if (!os_strcmp(interfaces->iface[i]->conf->bss[0]->iface,
2890 hapd_iface = hostapd_iface_alloc(interfaces);
2898 if (conf_file && interfaces->config_read_cb) {
2899 conf = interfaces->config_read_cb(conf_file);
2908 conf = hostapd_config_alloc(interfaces, buf, ptr, driver);
2941 if (hapd_iface->interfaces &&
2942 hapd_iface->interfaces->ctrl_iface_deinit)
2943 hapd_iface->interfaces->
2956 interfaces->count--;
2957 interfaces->iface[interfaces->count] = NULL;
2999 int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf)
3004 for (i = 0; i < interfaces->count; i++) {
3005 hapd_iface = interfaces->iface[i];
3016 while (k < (interfaces->count - 1)) {
3017 interfaces->iface[k] =
3018 interfaces->iface[k + 1];
3021 interfaces->count--;
3537 struct hostapd_data * hostapd_get_iface(struct hapd_interfaces *interfaces,
3542 for (i = 0; i < interfaces->count; i++) {
3543 struct hostapd_iface *iface = interfaces->iface[i];