Lines Matching refs:iwr

190 	struct iwreq iwr;  in get80211param()  local
192 os_memset(&iwr, 0, sizeof(iwr)); in get80211param()
193 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in get80211param()
194 iwr.u.mode = op; in get80211param()
196 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_GETPARAM, &iwr) < 0) in get80211param()
199 *data = iwr.u.mode; in get80211param()
208 struct iwreq iwr; in set80211priv() local
216 os_memset(&iwr, 0, sizeof(iwr)); in set80211priv()
217 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211priv()
222 os_memcpy(iwr.u.name, data, len); in set80211priv()
229 iwr.u.data.pointer = data; in set80211priv()
230 iwr.u.data.length = len; in set80211priv()
233 if (ioctl(drv->ioctl_sock, op, &iwr) < 0) { in set80211priv()
247 struct iwreq iwr; in set80211param() local
249 os_memset(&iwr, 0, sizeof(iwr)); in set80211param()
250 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211param()
251 iwr.u.mode = op; in set80211param()
252 os_memcpy(iwr.u.name + sizeof(__u32), &arg, sizeof(arg)); in set80211param()
254 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_SETPARAM, &iwr) < 0) { in set80211param()
817 struct iwreq iwr; in atheros_set_qos_map() local
827 os_memset(&iwr, 0, sizeof(iwr)); in atheros_set_qos_map()
828 os_strlcpy(iwr.ifr_name, drv->iface, sizeof(iwr.ifr_name)); in atheros_set_qos_map()
829 iwr.u.data.pointer = (void *) &req; in atheros_set_qos_map()
830 iwr.u.data.length = sizeof(struct ieee80211req_athdbg); in atheros_set_qos_map()
848 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_DBGREQ, &iwr) < 0) { in atheros_set_qos_map()
1406 struct iwreq iwr; in fetch_pending_big_events() local
1411 os_memset(&iwr, 0, sizeof(iwr)); in fetch_pending_big_events()
1412 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in fetch_pending_big_events()
1414 iwr.u.data.pointer = (void *) tbuf; in fetch_pending_big_events()
1415 iwr.u.data.length = sizeof(tbuf); in fetch_pending_big_events()
1416 iwr.u.data.flags = IEEE80211_IOC_P2P_FETCH_FRAME; in fetch_pending_big_events()
1418 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_P2P_BIG_PARAM, &iwr) in fetch_pending_big_events()
1430 data_len = iwr.u.data.length; in fetch_pending_big_events()
1592 struct iwreq iwr; in atheros_get_we_version() local
1607 os_memset(&iwr, 0, sizeof(iwr)); in atheros_get_we_version()
1608 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in atheros_get_we_version()
1609 iwr.u.data.pointer = (caddr_t) range; in atheros_get_we_version()
1610 iwr.u.data.length = buflen; in atheros_get_we_version()
1615 if (ioctl(drv->ioctl_sock, SIOCGIWRANGE, &iwr) < 0) { in atheros_get_we_version()
1620 } else if (iwr.u.data.length >= minlen && in atheros_get_we_version()
1733 struct iwreq iwr; in atheros_init() local
1786 os_memset(&iwr, 0, sizeof(iwr)); in atheros_init()
1787 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in atheros_init()
1789 iwr.u.mode = IW_MODE_MASTER; in atheros_init()
1791 if (ioctl(drv->ioctl_sock, SIOCSIWMODE, &iwr) < 0) { in atheros_init()
1857 struct iwreq iwr; in atheros_set_ssid() local
1859 os_memset(&iwr, 0, sizeof(iwr)); in atheros_set_ssid()
1860 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in atheros_set_ssid()
1861 iwr.u.essid.flags = 1; /* SSID active */ in atheros_set_ssid()
1862 iwr.u.essid.pointer = (caddr_t) buf; in atheros_set_ssid()
1863 iwr.u.essid.length = len; in atheros_set_ssid()
1865 if (ioctl(drv->ioctl_sock, SIOCSIWESSID, &iwr) < 0) { in atheros_set_ssid()
1877 struct iwreq iwr; in atheros_get_ssid() local
1880 os_memset(&iwr, 0, sizeof(iwr)); in atheros_get_ssid()
1881 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in atheros_get_ssid()
1882 iwr.u.essid.pointer = (caddr_t) buf; in atheros_get_ssid()
1883 iwr.u.essid.length = (len > IW_ESSID_MAX_SIZE) ? in atheros_get_ssid()
1886 if (ioctl(drv->ioctl_sock, SIOCGIWESSID, &iwr) < 0) { in atheros_get_ssid()
1891 ret = iwr.u.essid.length; in atheros_get_ssid()
2052 struct iwreq iwr; in set80211big() local
2054 os_memset(&iwr, 0, sizeof(iwr)); in set80211big()
2055 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211big()
2057 iwr.u.data.pointer = (void *) data; in set80211big()
2058 iwr.u.data.length = len; in set80211big()
2059 iwr.u.data.flags = op; in set80211big()
2063 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_P2P_BIG_PARAM, &iwr) < 0) { in set80211big()
2066 __func__, op, athr_get_ioctl_name(op), iwr.u.mode, in set80211big()
2067 iwr.u.mode, iwr.u.data.length, in set80211big()
2068 iwr.u.data.flags, errno, strerror(errno)); in set80211big()