Lines Matching refs:ifmr
219 struct ifmediareq ifmr; in bsd_get_if_media() local
221 os_memset(&ifmr, 0, sizeof(ifmr)); in bsd_get_if_media()
222 os_strlcpy(ifmr.ifm_name, drv->ifname, sizeof(ifmr.ifm_name)); in bsd_get_if_media()
224 if (ioctl(drv->global->sock, SIOCGIFMEDIA, &ifmr) < 0) { in bsd_get_if_media()
230 return ifmr.ifm_current; in bsd_get_if_media()
1538 struct ifmediareq ifmr; in get80211opmode() local
1540 (void) memset(&ifmr, 0, sizeof(ifmr)); in get80211opmode()
1541 (void) os_strlcpy(ifmr.ifm_name, drv->ifname, sizeof(ifmr.ifm_name)); in get80211opmode()
1543 if (ioctl(drv->global->sock, SIOCGIFMEDIA, (caddr_t)&ifmr) >= 0) { in get80211opmode()
1544 if (ifmr.ifm_current & IFM_IEEE80211_ADHOC) { in get80211opmode()
1545 if (ifmr.ifm_current & IFM_FLAG0) in get80211opmode()
1550 if (ifmr.ifm_current & IFM_IEEE80211_HOSTAP) in get80211opmode()
1552 if (ifmr.ifm_current & IFM_IEEE80211_MONITOR) in get80211opmode()
1555 if (ifmr.ifm_current & IFM_IEEE80211_MBSS) in get80211opmode()