Lines Matching refs:interfaces
1639 hapd->iface->interfaces->ctrl_iface_group &&
1641 hapd->iface->interfaces->ctrl_iface_group) < 0) {
1719 hapd->iface->interfaces->ctrl_iface_group &&
1720 chown(fname, -1, hapd->iface->interfaces->ctrl_iface_group) < 0) {
1788 static int hostapd_ctrl_iface_add(struct hapd_interfaces *interfaces,
1791 if (hostapd_add_iface(interfaces, buf) < 0) {
1799 static int hostapd_ctrl_iface_remove(struct hapd_interfaces *interfaces,
1802 if (hostapd_remove_iface(interfaces, buf) < 0) {
1810 static void hostapd_ctrl_iface_flush(struct hapd_interfaces *interfaces)
1823 void *interfaces = eloop_ctx;
1850 hostapd_ctrl_iface_flush(interfaces);
1852 if (hostapd_ctrl_iface_add(interfaces, buf + 4) < 0)
1855 if (hostapd_ctrl_iface_remove(interfaces, buf + 7) < 0)
2005 void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interfaces)
2009 if (interfaces->global_ctrl_sock > -1) {
2010 eloop_unregister_read_sock(interfaces->global_ctrl_sock);
2011 close(interfaces->global_ctrl_sock);
2012 interfaces->global_ctrl_sock = -1;
2013 fname = hostapd_global_ctrl_iface_path(interfaces);
2019 if (interfaces->global_iface_path &&
2020 rmdir(interfaces->global_iface_path) < 0) {
2028 interfaces->global_iface_path,
2032 os_free(interfaces->global_iface_path);
2033 interfaces->global_iface_path = NULL;