Lines Matching defs:ioctl_sock
42 int ioctl_sock; /* socket for ioctl() use */
360 if (linux_set_iface_flags(drv->ioctl_sock, ifname, dev_up) < 0)
367 if (ioctl(drv->ioctl_sock, SIOCSIFMTU, &ifr) != 0) {
389 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_HOSTAPD, &iwr) < 0) {
507 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_PRISM2_PARAM, &iwr) < 0) {
565 if (ioctl(drv->ioctl_sock, SIOCSIWESSID, &iwr) < 0) {
928 if (ioctl(drv->ioctl_sock, SIOCGIWRANGE, &iwr) < 0) {
981 drv->ioctl_sock = drv->sock = -1;
984 drv->ioctl_sock = socket(PF_INET, SOCK_DGRAM, 0);
985 if (drv->ioctl_sock < 0) {
996 close(drv->ioctl_sock);
1003 close(drv->ioctl_sock);
1021 if (drv->ioctl_sock >= 0)
1022 close(drv->ioctl_sock);
1072 if (ioctl(drv->ioctl_sock, SIOCSIWFREQ, &iwr) < 0) {