Home | History | Annotate | Download | only in drivers

Lines Matching refs:sock

59 	int	sock;			/* open socket for 802.11 ioctls */
87 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) {
108 if (ioctl(drv->sock, SIOCG80211, ireq) < 0) {
149 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 ||
172 return ioctl(drv->sock, SIOCS80211NWID, &ifr);
187 if (ioctl(drv->sock, SIOCGIFMEDIA, &ifmr) < 0) {
206 if (ioctl(drv->sock, SIOCSIFMEDIA, &ifr) < 0) {
269 if (ioctl(drv->sock, SIOCGIFFLAGS, &ifr) < 0) {
279 if (ioctl(drv->sock, SIOCSIFFLAGS, &ifr) < 0) {
576 return ioctl(drv->sock, SIOCS80211CHANNEL, &creq);
728 bsd_wireless_event_receive(int sock, void *ctx, void *sock_ctx)
748 n = read(sock, buf, len);
824 drv->sock = socket(PF_INET, SOCK_DGRAM, 0);
825 if (drv->sock < 0) {
860 if (drv->sock >= 0)
861 close(drv->sock);
878 if (drv->sock >= 0)
879 close(drv->sock);
905 if (ioctl(drv->sock, SIOCG80211BSSID, &bs) < 0)
1164 wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)
1185 n = read(sock, buf, len);
1474 drv->sock = socket(PF_INET, SOCK_DGRAM, 0);
1475 if (drv->sock < 0)
1511 close(drv->sock);
1537 (void) close(drv->sock); /* event socket */