Searched refs:iwr (Results 1 – 4 of 4) sorted by relevance
/external/wpa_supplicant_8/src/drivers/ |
D | driver_wext.c | 45 struct iwreq iwr; in wpa_driver_wext_set_auth_param() local 48 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_wext_set_auth_param() 49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 50 iwr.u.param.flags = idx & IW_AUTH_INDEX; in wpa_driver_wext_set_auth_param() 51 iwr.u.param.value = value; in wpa_driver_wext_set_auth_param() 53 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param() 75 struct iwreq iwr; in wpa_driver_wext_get_bssid() local 78 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_wext_get_bssid() 79 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid() 81 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_wext_get_bssid() [all …]
|
D | driver_atheros.c | 180 struct iwreq iwr; in set80211priv() local 188 memset(&iwr, 0, sizeof(iwr)); in set80211priv() 189 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211priv() 194 memcpy(iwr.u.name, data, len); in set80211priv() 201 iwr.u.data.pointer = data; in set80211priv() 202 iwr.u.data.length = len; in set80211priv() 205 if (ioctl(drv->ioctl_sock, op, &iwr) < 0) { in set80211priv() 219 struct iwreq iwr; in set80211param() local 221 memset(&iwr, 0, sizeof(iwr)); in set80211param() 222 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211param() [all …]
|
D | driver_hostap.c | 381 struct iwreq iwr; in hostapd_ioctl() local 383 memset(&iwr, 0, sizeof(iwr)); in hostapd_ioctl() 384 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in hostapd_ioctl() 385 iwr.u.data.pointer = (caddr_t) param; in hostapd_ioctl() 386 iwr.u.data.length = len; in hostapd_ioctl() 388 if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_HOSTAPD, &iwr) < 0) { in hostapd_ioctl() 494 struct iwreq iwr; in hostap_ioctl_prism2param() local 497 memset(&iwr, 0, sizeof(iwr)); in hostap_ioctl_prism2param() 498 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in hostap_ioctl_prism2param() 499 i = (int *) iwr.u.name; in hostap_ioctl_prism2param() [all …]
|
/external/dhcpcd/ |
D | if-linux-wireless.c | 69 struct iwreq iwr; in getifssid() local 73 memset(&iwr, 0, sizeof(iwr)); in getifssid() 74 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name)); in getifssid() 75 iwr.u.essid.pointer = ssid; in getifssid() 76 iwr.u.essid.length = IF_SSIDSIZE - 1; in getifssid() 78 if (ioctl(s, SIOCGIWESSID, &iwr) == 0) { in getifssid() 79 retval = iwr.u.essid.length; in getifssid()
|