Home | History | Annotate | Download | only in drivers

Lines Matching defs:ifr

181 	struct ifreq ifr;
183 os_memset(&ifr, 0, sizeof(ifr));
184 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
185 ifr.ifr_data = (void *)&nwid;
186 if (ioctl(drv->global->sock, SIOCG80211NWID, &ifr) < 0 ||
202 struct ifreq ifr;
206 os_memset(&ifr, 0, sizeof(ifr));
207 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
208 ifr.ifr_data = (void *)&nwid;
209 return ioctl(drv->global->sock, SIOCS80211NWID, &ifr);
237 struct ifreq ifr;
239 os_memset(&ifr, 0, sizeof(ifr));
240 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
241 ifr.ifr_media = media;
243 if (ioctl(drv->global->sock, SIOCSIFMEDIA, &ifr) < 0) {
301 struct ifreq ifr;
303 os_memset(&ifr, 0, sizeof(ifr));
304 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name));
306 if (ioctl(drv->global->sock, SIOCGIFFLAGS, &ifr) < 0) {
311 drv->flags = ifr.ifr_flags;
314 if (ifr.ifr_flags & IFF_UP)
316 ifr.ifr_flags |= IFF_UP;
318 if (!(ifr.ifr_flags & IFF_UP))
320 ifr.ifr_flags &= ~IFF_UP;
323 if (ioctl(drv->global->sock, SIOCSIFFLAGS, &ifr) < 0) {
329 drv->flags = ifr.ifr_flags;