Home
last modified time | relevance | path

Searched refs:iwr (Results 1 – 15 of 15) sorted by relevance

/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Ddriver_ps3.c29 struct iwreq iwr; in wpa_driver_ps3_set_wpa_key() local
37 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_ps3_set_wpa_key()
40 iwr.u.data.length = PMK_LEN * 2 + 1; in wpa_driver_ps3_set_wpa_key()
41 buf = os_malloc(iwr.u.data.length); in wpa_driver_ps3_set_wpa_key()
46 str += snprintf(str, iwr.u.data.length - (str - buf), in wpa_driver_ps3_set_wpa_key()
51 iwr.u.data.length = strlen(params->passphrase) + 3; in wpa_driver_ps3_set_wpa_key()
52 buf = os_malloc(iwr.u.data.length); in wpa_driver_ps3_set_wpa_key()
56 os_memcpy(buf + 1, params->passphrase, iwr.u.data.length - 3); in wpa_driver_ps3_set_wpa_key()
57 buf[iwr.u.data.length - 2] = '"'; in wpa_driver_ps3_set_wpa_key()
58 buf[iwr.u.data.length - 1] = '\0'; in wpa_driver_ps3_set_wpa_key()
[all …]
Ddriver_wext.c108 struct iwreq iwr; in wpa_driver_wext_set_auth_param() local
111 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_wext_set_auth_param()
112 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param()
113 iwr.u.param.flags = idx & IW_AUTH_INDEX; in wpa_driver_wext_set_auth_param()
114 iwr.u.param.value = value; in wpa_driver_wext_set_auth_param()
116 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param()
138 struct iwreq iwr; in wpa_driver_wext_get_bssid() local
141 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_wext_get_bssid()
142 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid()
144 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_wext_get_bssid()
[all …]
Ddriver_madwifi.c62 struct iwreq iwr; in set80211priv() local
64 os_memset(&iwr, 0, sizeof(iwr)); in set80211priv()
65 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in set80211priv()
71 os_memcpy(iwr.u.name, data, len); in set80211priv()
78 iwr.u.data.pointer = data; in set80211priv()
79 iwr.u.data.length = len; in set80211priv()
82 if (ioctl(drv->sock, op, &iwr) < 0) { in set80211priv()
158 struct iwreq iwr; in set80211param() local
160 os_memset(&iwr, 0, sizeof(iwr)); in set80211param()
161 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in set80211param()
[all …]
Ddriver_ralink.c54 struct iwreq iwr; in ralink_set_oid() local
59 os_memset(&iwr, 0, sizeof(iwr)); in ralink_set_oid()
60 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in ralink_set_oid()
61 iwr.u.data.flags = oid; in ralink_set_oid()
62 iwr.u.data.flags |= OID_GET_SET_TOGGLE; in ralink_set_oid()
67 iwr.u.data.pointer = (caddr_t) buf; in ralink_set_oid()
68 iwr.u.data.length = len; in ralink_set_oid()
70 if (ioctl(drv->ioctl_sock, RT_PRIV_IOCTL, &iwr) < 0) { in ralink_set_oid()
83 struct iwreq iwr; in ralink_get_new_driver_flag() local
86 os_memset(&iwr, 0, sizeof(iwr)); in ralink_get_new_driver_flag()
[all …]
Ddriver_hostap.c39 struct iwreq iwr; in hostapd_ioctl() local
41 os_memset(&iwr, 0, sizeof(iwr)); in hostapd_ioctl()
42 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in hostapd_ioctl()
43 iwr.u.data.pointer = (caddr_t) param; in hostapd_ioctl()
44 iwr.u.data.length = len; in hostapd_ioctl()
46 if (ioctl(drv->sock, PRISM2_IOCTL_HOSTAPD, &iwr) < 0) { in hostapd_ioctl()
84 struct iwreq iwr; in prism2param() local
87 os_memset(&iwr, 0, sizeof(iwr)); in prism2param()
88 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in prism2param()
89 i = (int *) iwr.u.name; in prism2param()
[all …]
Ddriver_nl80211.c280 struct iwreq iwr; in wpa_driver_nl80211_set_auth_param() local
283 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_nl80211_set_auth_param()
284 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_nl80211_set_auth_param()
285 iwr.u.param.flags = idx & IW_AUTH_INDEX; in wpa_driver_nl80211_set_auth_param()
286 iwr.u.param.value = value; in wpa_driver_nl80211_set_auth_param()
288 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_nl80211_set_auth_param()
304 struct iwreq iwr; in wpa_driver_nl80211_get_bssid() local
307 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_nl80211_get_bssid()
308 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_nl80211_get_bssid()
310 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_nl80211_get_bssid()
[all …]
Ddriver_atmel.c105 struct iwreq iwr; in atmel_ioctl() local
107 os_memset(&iwr, 0, sizeof(iwr)); in atmel_ioctl()
108 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in atmel_ioctl()
109 iwr.u.data.pointer = (caddr_t) param; in atmel_ioctl()
110 iwr.u.data.length = len; in atmel_ioctl()
112 if (ioctl(drv->sock, ATMEL_WPA_IOCTL, &iwr) < 0) { in atmel_ioctl()
126 struct iwreq iwr; in atmel2param() local
129 os_memset(&iwr, 0, sizeof(iwr)); in atmel2param()
130 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in atmel2param()
131 i = (int *) iwr.u.name; in atmel2param()
[all …]
Ddriver_prism54.c42 struct iwreq iwr; in hostapd_ioctl_prism54() local
44 os_memset(&iwr, 0, sizeof(iwr)); in hostapd_ioctl_prism54()
45 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in hostapd_ioctl_prism54()
46 iwr.u.data.pointer = (caddr_t) param; in hostapd_ioctl_prism54()
47 iwr.u.data.length = len; in hostapd_ioctl_prism54()
49 if (ioctl(drv->sock, PRISM54_HOSTAPD, &iwr) < 0) { in hostapd_ioctl_prism54()
Ddriver_ipw.c99 struct iwreq iwr; in ipw_ioctl() local
101 os_memset(&iwr, 0, sizeof(iwr)); in ipw_ioctl()
102 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in ipw_ioctl()
103 iwr.u.data.pointer = (caddr_t) param; in ipw_ioctl()
104 iwr.u.data.length = len; in ipw_ioctl()
106 if (ioctl(drv->sock, IPW_IOCTL_WPA_SUPPLICANT, &iwr) < 0) { in ipw_ioctl()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wext.c54 struct iwreq iwr; in wpa_driver_wext_set_auth_param() local
57 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_wext_set_auth_param()
58 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param()
59 iwr.u.param.flags = idx & IW_AUTH_INDEX; in wpa_driver_wext_set_auth_param()
60 iwr.u.param.value = value; in wpa_driver_wext_set_auth_param()
62 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param()
84 struct iwreq iwr; in wpa_driver_wext_get_bssid() local
87 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_wext_get_bssid()
88 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid()
90 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_wext_get_bssid()
[all …]
Ddriver_madwifi.c102 struct iwreq iwr; in set80211priv() local
105 memset(&iwr, 0, sizeof(iwr)); in set80211priv()
106 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211priv()
118 memcpy(iwr.u.name, data, len); in set80211priv()
125 iwr.u.data.pointer = data; in set80211priv()
126 iwr.u.data.length = len; in set80211priv()
129 if (ioctl(drv->ioctl_sock, op, &iwr) < 0) { in set80211priv()
204 struct iwreq iwr; in set80211param() local
206 memset(&iwr, 0, sizeof(iwr)); in set80211param()
207 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211param()
[all …]
Ddriver_atheros.c179 struct iwreq iwr; in set80211priv() local
187 memset(&iwr, 0, sizeof(iwr)); in set80211priv()
188 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211priv()
193 memcpy(iwr.u.name, data, len); in set80211priv()
200 iwr.u.data.pointer = data; in set80211priv()
201 iwr.u.data.length = len; in set80211priv()
204 if (ioctl(drv->ioctl_sock, op, &iwr) < 0) { in set80211priv()
218 struct iwreq iwr; in set80211param() local
220 memset(&iwr, 0, sizeof(iwr)); in set80211param()
221 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211param()
[all …]
Ddriver_hostap.c378 struct iwreq iwr; in hostapd_ioctl() local
380 memset(&iwr, 0, sizeof(iwr)); in hostapd_ioctl()
381 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in hostapd_ioctl()
382 iwr.u.data.pointer = (caddr_t) param; in hostapd_ioctl()
383 iwr.u.data.length = len; in hostapd_ioctl()
385 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_HOSTAPD, &iwr) < 0) { in hostapd_ioctl()
490 struct iwreq iwr; in hostap_ioctl_prism2param() local
493 memset(&iwr, 0, sizeof(iwr)); in hostap_ioctl_prism2param()
494 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in hostap_ioctl_prism2param()
495 i = (int *) iwr.u.name; in hostap_ioctl_prism2param()
[all …]
/external/dhcpcd/
Dif-linux-wireless.c68 struct iwreq iwr; in getifssid() local
72 memset(&iwr, 0, sizeof(iwr)); in getifssid()
73 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name)); in getifssid()
74 iwr.u.essid.pointer = ssid; in getifssid()
75 iwr.u.essid.length = IF_SSIDSIZE - 1; in getifssid()
77 if (ioctl(s, SIOCGIWESSID, &iwr) == 0) { in getifssid()
78 retval = iwr.u.essid.length; in getifssid()
/external/webkit/PerformanceTests/Parser/resources/
Dfinal-url-en50884 http://www.iwr.co.uk/News/1161048
50885 http://www.iwr.com/exerciser2000/testimonies.htm