Lines Matching refs:interfaces
45 int hostapd_for_each_interface(struct hapd_interfaces *interfaces, in hostapd_for_each_interface() argument
52 for (i = 0; i < interfaces->count; i++) { in hostapd_for_each_interface()
53 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface()
117 if (iface->interfaces == NULL || in hostapd_reload_config()
118 iface->interfaces->config_read_cb == NULL) in hostapd_reload_config()
120 newconf = iface->interfaces->config_read_cb(iface->config_fname); in hostapd_reload_config()
291 if (hapd->iface->interfaces && in hostapd_cleanup()
292 hapd->iface->interfaces->ctrl_iface_deinit) in hostapd_cleanup()
293 hapd->iface->interfaces->ctrl_iface_deinit(hapd); in hostapd_cleanup()
776 if (hapd->iface->interfaces && in hostapd_setup_bss()
777 hapd->iface->interfaces->ctrl_iface_init && in hostapd_setup_bss()
778 hapd->iface->interfaces->ctrl_iface_init(hapd)) { in hostapd_setup_bss()
1080 if (hapd_iface->interfaces == NULL || in hostapd_enable_iface()
1081 hapd_iface->interfaces->driver_init == NULL || in hostapd_enable_iface()
1082 hapd_iface->interfaces->driver_init(hapd_iface) || in hostapd_enable_iface()
1153 hostapd_iface_alloc(struct hapd_interfaces *interfaces) in hostapd_iface_alloc() argument
1157 iface = os_realloc_array(interfaces->iface, interfaces->count + 1, in hostapd_iface_alloc()
1161 interfaces->iface = iface; in hostapd_iface_alloc()
1162 hapd_iface = interfaces->iface[interfaces->count] = in hostapd_iface_alloc()
1169 interfaces->count++; in hostapd_iface_alloc()
1170 hapd_iface->interfaces = interfaces; in hostapd_iface_alloc()
1177 hostapd_config_alloc(struct hapd_interfaces *interfaces, const char *ifname, in hostapd_config_alloc() argument
1216 struct hapd_interfaces *interfaces, struct hostapd_config *conf) in hostapd_data_alloc() argument
1220 interfaces->iface[interfaces->count - 1]; in hostapd_data_alloc()
1240 hapd_iface->interfaces = interfaces; in hostapd_data_alloc()
1246 int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf) in hostapd_add_iface() argument
1258 for (i = 0; i < interfaces->count; i++) { in hostapd_add_iface()
1259 if (!os_strcmp(interfaces->iface[i]->conf->bss[0].iface, in hostapd_add_iface()
1267 hapd_iface = hostapd_iface_alloc(interfaces); in hostapd_add_iface()
1274 conf = hostapd_config_alloc(interfaces, buf, ptr); in hostapd_add_iface()
1281 hapd_iface = hostapd_data_alloc(interfaces, conf); in hostapd_add_iface()
1288 if (hapd_iface->interfaces && in hostapd_add_iface()
1289 hapd_iface->interfaces->ctrl_iface_init && in hostapd_add_iface()
1290 hapd_iface->interfaces->ctrl_iface_init(hapd_iface->bss[0])) { in hostapd_add_iface()
1303 os_free(hapd_iface->bss[interfaces->count]); in hostapd_add_iface()
1310 int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf) in hostapd_remove_iface() argument
1315 for (i = 0; i < interfaces->count; i++) { in hostapd_remove_iface()
1316 hapd_iface = interfaces->iface[i]; in hostapd_remove_iface()
1323 while (k < (interfaces->count - 1)) { in hostapd_remove_iface()
1324 interfaces->iface[k] = in hostapd_remove_iface()
1325 interfaces->iface[k + 1]; in hostapd_remove_iface()
1328 interfaces->count--; in hostapd_remove_iface()