Lines Matching defs:interface
2 * hostapd / UNIX domain socket -based control interface
1464 wpa_printf(MSG_ERROR, "Enabling of interface failed");
1474 wpa_printf(MSG_ERROR, "Reloading of interface failed");
1484 wpa_printf(MSG_ERROR, "Disabling of interface failed");
3620 "interface directory.");
3647 * Android is using umask 0077 which would leave the control interface
3778 wpa_printf(MSG_DEBUG, "Control interface "
3806 wpa_printf(MSG_ERROR, "Adding interface %s failed", buf);
3817 wpa_printf(MSG_ERROR, "Removing interface %s failed", buf);
4271 static char * hostapd_global_ctrl_iface_path(struct hapd_interfaces *interface)
4276 if (interface->global_iface_path == NULL)
4279 len = os_strlen(interface->global_iface_path) +
4280 os_strlen(interface->global_iface_name) + 2;
4285 os_snprintf(buf, len, "%s/%s", interface->global_iface_path,
4286 interface->global_iface_name);
4293 int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
4302 if (interface->global_ctrl_sock > -1) {
4307 if (interface->global_iface_path == NULL)
4310 pos = os_strstr(interface->global_iface_path, "udp:");
4342 interface->global_ctrl_sock = socket(res->ai_family, res->ai_socktype,
4344 if (interface->global_ctrl_sock < 0) {
4349 if (bind(interface->global_ctrl_sock, res->ai_addr, res->ai_addrlen) <
4363 if (eloop_register_read_sock(interface->global_ctrl_sock,
4365 interface, NULL) < 0) {
4366 hostapd_global_ctrl_iface_deinit(interface);
4373 if (interface->global_ctrl_sock >= 0)
4374 close(interface->global_ctrl_sock);
4381 if (interface->global_iface_path == NULL) {
4386 if (mkdir(interface->global_iface_path, S_IRWXU | S_IRWXG) < 0) {
4389 "interface directory.");
4395 } else if (interface->ctrl_iface_group &&
4396 lchown(interface->global_iface_path, -1,
4397 interface->ctrl_iface_group) < 0) {
4403 if (os_strlen(interface->global_iface_path) + 1 +
4404 os_strlen(interface->global_iface_name) >= sizeof(addr.sun_path))
4418 fname = hostapd_global_ctrl_iface_path(interface);
4454 if (interface->ctrl_iface_group &&
4455 lchown(fname, -1, interface->ctrl_iface_group) < 0) {
4468 interface->global_ctrl_sock = s;
4470 interface, NULL);
4507 wpa_printf(MSG_DEBUG, "Control interface "