Lines Matching refs:interfaces
1189 static int hostapd_ctrl_iface_add(struct hapd_interfaces *interfaces,
1192 if (hostapd_add_iface(interfaces, buf) < 0) {
1200 static int hostapd_ctrl_iface_remove(struct hapd_interfaces *interfaces,
1203 if (hostapd_remove_iface(interfaces, buf) < 0) {
1214 void *interfaces = eloop_ctx;
1237 if (hostapd_ctrl_iface_add(interfaces, buf + 4) < 0)
1240 if (hostapd_ctrl_iface_remove(interfaces, buf + 7) < 0)
1373 void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interfaces)
1377 if (interfaces->global_ctrl_sock > -1) {
1378 eloop_unregister_read_sock(interfaces->global_ctrl_sock);
1379 close(interfaces->global_ctrl_sock);
1380 interfaces->global_ctrl_sock = -1;
1381 fname = hostapd_global_ctrl_iface_path(interfaces);
1387 if (interfaces->global_iface_path &&
1388 rmdir(interfaces->global_iface_path) < 0) {
1397 os_free(interfaces->global_iface_path);
1398 interfaces->global_iface_path = NULL;