Lines Matching defs:interface
2 * hostapd / UNIX domain socket -based control interface
1387 wpa_printf(MSG_ERROR, "Enabling of interface failed");
1397 wpa_printf(MSG_ERROR, "Reloading of interface failed");
1407 wpa_printf(MSG_ERROR, "Disabling of interface failed");
2390 "interface directory.");
2417 * Android is using umask 0077 which would leave the control interface
2543 wpa_printf(MSG_DEBUG, "Control interface "
2574 wpa_printf(MSG_ERROR, "Adding interface %s failed", buf);
2585 wpa_printf(MSG_ERROR, "Removing interface %s failed", buf);
2978 static char * hostapd_global_ctrl_iface_path(struct hapd_interfaces *interface)
2983 if (interface->global_iface_path == NULL)
2986 len = os_strlen(interface->global_iface_path) +
2987 os_strlen(interface->global_iface_name) + 2;
2992 os_snprintf(buf, len, "%s/%s", interface->global_iface_path,
2993 interface->global_iface_name);
2999 int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
3005 if (interface->global_iface_path == NULL) {
3010 if (mkdir(interface->global_iface_path, S_IRWXU | S_IRWXG) < 0) {
3013 "interface directory.");
3019 } else if (interface->ctrl_iface_group &&
3020 chown(interface->global_iface_path, -1,
3021 interface->ctrl_iface_group) < 0) {
3027 if (os_strlen(interface->global_iface_path) + 1 +
3028 os_strlen(interface->global_iface_name) >= sizeof(addr.sun_path))
3042 fname = hostapd_global_ctrl_iface_path(interface);
3078 if (interface->ctrl_iface_group &&
3079 chown(fname, -1, interface->ctrl_iface_group) < 0) {
3092 interface->global_ctrl_sock = s;
3094 interface, NULL);
3127 wpa_printf(MSG_DEBUG, "Control interface "