Lines Matching refs:ioctl
10 #include <sys/ioctl.h>
42 int ioctl_sock; /* socket for ioctl() use */
244 if (ioctl(drv->sock, SIOCGIFINDEX, &ifr) != 0) {
245 wpa_printf(MSG_ERROR, "ioctl(SIOCGIFINDEX): %s",
366 if (ioctl(drv->ioctl_sock, SIOCSIFMTU, &ifr) != 0) {
368 "Setting MTU failed - trying to survive with current value: ioctl[SIOCSIFMTU]: %s",
388 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_HOSTAPD, &iwr) < 0) {
389 wpa_printf(MSG_ERROR, "ioctl[PRISM2_IOCTL_HOSTAPD]: %s",
503 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_PRISM2_PARAM, &iwr) < 0) {
504 wpa_printf(MSG_ERROR, "ioctl[PRISM2_IOCTL_PRISM2_PARAM]: %s",
561 if (ioctl(drv->ioctl_sock, SIOCSIWESSID, &iwr) < 0) {
562 wpa_printf(MSG_ERROR, "ioctl[SIOCSIWESSID,len=%d]: %s",
926 if (ioctl(drv->ioctl_sock, SIOCGIWRANGE, &iwr) < 0) {
927 wpa_printf(MSG_ERROR, "ioctl[SIOCGIWRANGE]: %s",
1070 if (ioctl(drv->ioctl_sock, SIOCSIWFREQ, &iwr) < 0) {
1071 wpa_printf(MSG_ERROR, "ioctl[SIOCSIWFREQ]: %s",