Lines Matching refs:ioctl_sock
42 int ioctl_sock; /* socket for ioctl() use */
359 if (linux_set_iface_flags(drv->ioctl_sock, ifname, dev_up) < 0)
366 if (ioctl(drv->ioctl_sock, SIOCSIFMTU, &ifr) != 0) {
388 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_HOSTAPD, &iwr) < 0) {
503 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_PRISM2_PARAM, &iwr) < 0) {
561 if (ioctl(drv->ioctl_sock, SIOCSIWESSID, &iwr) < 0) {
924 if (ioctl(drv->ioctl_sock, SIOCGIWRANGE, &iwr) < 0) {
977 drv->ioctl_sock = drv->sock = -1;
980 drv->ioctl_sock = socket(PF_INET, SOCK_DGRAM, 0);
981 if (drv->ioctl_sock < 0) {
992 close(drv->ioctl_sock);
999 close(drv->ioctl_sock);
1017 if (drv->ioctl_sock >= 0)
1018 close(drv->ioctl_sock);
1068 if (ioctl(drv->ioctl_sock, SIOCSIWFREQ, &iwr) < 0) {