Lines Matching refs:interfaces
168 struct hapd_interfaces *interfaces = eloop_ctx; in hostapd_periodic() local
171 hostapd_periodic, interfaces, NULL); in hostapd_periodic()
172 hostapd_for_each_interface(interfaces, hostapd_periodic_call, NULL); in hostapd_periodic()
724 hapd_iface->conf = hapd_iface->interfaces->config_read_cb(hapd_iface->config_fname); in hostapd_disable_iface_cb()
735 static int hostapd_global_init(struct hapd_interfaces *interfaces, const char *entropy_file) in hostapd_global_init() argument
746 interfaces->eloop_initialized = 1; in hostapd_global_init()
789 hglobal.drv_priv[i] = wpa_drivers[i]->global_init(iface->interfaces); in hostapd_driver_init()
967 static struct hostapd_iface *hostapd_interface_init(struct hapd_interfaces *interfaces, in hostapd_interface_init() argument
976 iface = hostapd_init(interfaces, config_fname); in hostapd_interface_init()
986 iface->interfaces = interfaces; in hostapd_interface_init()
1010 struct hapd_interfaces *interfaces = &ctx->hostapd; in zephyr_hostapd_init() local
1022 os_memset(interfaces, 0, sizeof(struct hapd_interfaces)); in zephyr_hostapd_init()
1023 interfaces->reload_config = hostapd_reload_config; in zephyr_hostapd_init()
1024 interfaces->config_read_cb = hostapd_config_read2; in zephyr_hostapd_init()
1025 interfaces->for_each_interface = hostapd_for_each_interface; in zephyr_hostapd_init()
1026 interfaces->driver_init = hostapd_driver_init; in zephyr_hostapd_init()
1027 interfaces->global_ctrl_sock = -1; in zephyr_hostapd_init()
1028 dl_list_init(&interfaces->global_ctrl_dst); in zephyr_hostapd_init()
1031 dpp_conf.cb_ctx = interfaces; in zephyr_hostapd_init()
1032 interfaces->dpp = dpp_global_init(&dpp_conf); in zephyr_hostapd_init()
1033 if (!interfaces->dpp) { in zephyr_hostapd_init()
1038 interfaces->count = 1; in zephyr_hostapd_init()
1039 if (interfaces->count || num_bss_configs) { in zephyr_hostapd_init()
1040 interfaces->iface = os_calloc(interfaces->count + num_bss_configs, in zephyr_hostapd_init()
1042 if (interfaces->iface == NULL) { in zephyr_hostapd_init()
1048 if (hostapd_global_init(interfaces, entropy_file)) { in zephyr_hostapd_init()
1054 hostapd_periodic, interfaces, NULL); in zephyr_hostapd_init()
1063 for (i = 0; i < interfaces->count; i++) { in zephyr_hostapd_init()
1064 interfaces->iface[i] = hostapd_interface_init(interfaces, ifname, in zephyr_hostapd_init()
1066 if (!interfaces->iface[i]) { in zephyr_hostapd_init()
1071 interfaces->iface[i]->need_to_start_in_sync = 0; in zephyr_hostapd_init()
1083 interfaces->terminate_on_error = 0; in zephyr_hostapd_init()
1084 for (i = 0; i < interfaces->count; i++) { in zephyr_hostapd_init()
1085 if (hostapd_driver_init(interfaces->iface[i])) { in zephyr_hostapd_init()
1089 interfaces->iface[i]->enable_iface_cb = hostapd_enable_iface_cb; in zephyr_hostapd_init()
1090 interfaces->iface[i]->disable_iface_cb = hostapd_disable_iface_cb; in zephyr_hostapd_init()
1091 zephyr_hostapd_ctrl_init((void *)interfaces->iface[i]->bss[0]); in zephyr_hostapd_init()