Home
last modified time | relevance | path

Searched refs:ifr (Results 1 – 10 of 10) sorted by relevance

/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu_linux.c102 struct ifreq *ifr = (struct ifreq *)dhd; in dhd_ioctl() local
130 ifr->ifr_data = (caddr_t) &ioc; in dhd_ioctl()
132 if ((ret = ioctl(s, SIOCDEVPRIVATE, ifr)) < 0) { in dhd_ioctl()
161 struct ifreq ifr; in dhd_get_dev_type() local
173 ifr.ifr_data = (caddr_t)&info; in dhd_get_dev_type()
174 strncpy(ifr.ifr_name, name, IFNAMSIZ); in dhd_get_dev_type()
175 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0) { in dhd_get_dev_type()
274 dhd_find(struct ifreq *ifr, char *type) in dhd_find() argument
282 ifr->ifr_name[0] = '\0'; in dhd_find()
295 strncpy(ifr->ifr_name, name, IFNAMSIZ); in dhd_find()
[all …]
Ddhdu_common.h84 static int process_args(struct ifreq* ifr, char **argv);
/hardware/broadcom/wlan/bcm4329/dhdutil/
Ddhdu_linux.c93 struct ifreq *ifr = (struct ifreq *)dhd; in dhd_ioctl() local
111 ifr->ifr_data = (caddr_t) &ioc; in dhd_ioctl()
113 if ((ret = ioctl(s, SIOCDEVPRIVATE, ifr)) < 0) { in dhd_ioctl()
142 struct ifreq ifr; in dhd_get_dev_type() local
154 ifr.ifr_data = (caddr_t)&info; in dhd_get_dev_type()
155 strncpy(ifr.ifr_name, name, IFNAMSIZ); in dhd_get_dev_type()
156 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0) { in dhd_get_dev_type()
255 dhd_find(struct ifreq *ifr, char *type) in dhd_find() argument
263 ifr->ifr_name[0] = '\0'; in dhd_find()
276 strncpy(ifr->ifr_name, name, IFNAMSIZ); in dhd_find()
[all …]
Ddhdu_common.h32 static int process_args(struct ifreq* ifr, char **argv);
/hardware/broadcom/wlan/bcmdhd/bcmdhd_net_iface/
Dbcmdhd_net_iface.c49 struct ifreq ifr; in net_iface_send_command() local
63 memset(&ifr, 0, sizeof(ifr)); in net_iface_send_command()
64 strncpy(ifr.ifr_name, argv[2], IFNAMSIZ); in net_iface_send_command()
71 ifr.ifr_data = &priv_cmd; in net_iface_send_command()
73 if ((ret = ioctl(state.sock, SIOCDEVPRIVATE + 1, &ifr)) < 0) { in net_iface_send_command()
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c131 struct ifreq ifr; in wpa_driver_set_backgroundscan_params() local
186 memset(&ifr, 0, sizeof(ifr)); in wpa_driver_set_backgroundscan_params()
188 os_strncpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in wpa_driver_set_backgroundscan_params()
193 ifr.ifr_data = &priv_cmd; in wpa_driver_set_backgroundscan_params()
195 ret = ioctl(drv->global->ioctl_sock, SIOCDEVPRIVATE + 1, &ifr); in wpa_driver_set_backgroundscan_params()
211 struct ifreq ifr; in wpa_driver_nl80211_driver_cmd() local
261 memset(&ifr, 0, sizeof(ifr)); in wpa_driver_nl80211_driver_cmd()
263 os_strncpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in wpa_driver_nl80211_driver_cmd()
268 ifr.ifr_data = &priv_cmd; in wpa_driver_nl80211_driver_cmd()
270 if ((ret = ioctl(drv->global->ioctl_sock, SIOCDEVPRIVATE + 1, &ifr)) < 0) { in wpa_driver_nl80211_driver_cmd()
/hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c131 struct ifreq ifr; in wpa_driver_nl80211_driver_cmd() local
170 memset(&ifr, 0, sizeof(ifr)); in wpa_driver_nl80211_driver_cmd()
173 os_strncpy(ifr.ifr_name, bss->ifname, IFNAMSIZ); in wpa_driver_nl80211_driver_cmd()
178 ifr.ifr_data = &priv_cmd; in wpa_driver_nl80211_driver_cmd()
180 if ((ret = ioctl(drv->global->ioctl_sock, SIOCDEVPRIVATE + 1, &ifr)) < 0) { in wpa_driver_nl80211_driver_cmd()
/hardware/ti/wlan/mac80211/ti-utils/
Dnvs.c196 struct ifreq ifr; in get_mac_addr() local
207 memset(&ifr, 0, sizeof(struct ifreq)); in get_mac_addr()
208 sprintf(ifr.ifr_name, if_name_fmt, ifc_num) ; in get_mac_addr()
209 if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) { in get_mac_addr()
217 memcpy(mac_addr, &ifr.ifr_ifru.ifru_hwaddr.sa_data[0], 6); in get_mac_addr()
/hardware/ti/wlan/mac80211/wpa_supplicant_lib/
Ddriver_mac80211.c711 struct ifreq ifr; in wpa_driver_wext_get_ifflags_ifname() local
713 os_memset(&ifr, 0, sizeof(ifr)); in wpa_driver_wext_get_ifflags_ifname()
714 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wext_get_ifflags_ifname()
715 if (ioctl(drv->ioctl_sock, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) { in wpa_driver_wext_get_ifflags_ifname()
719 *flags = ifr.ifr_flags & 0xffff; in wpa_driver_wext_get_ifflags_ifname()
1658 struct ifreq ifr; in wpa_driver_wext_get_mac_addr() local
1661 os_memset(&ifr, 0, sizeof(ifr)); in wpa_driver_wext_get_mac_addr()
1662 os_strncpy(ifr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_mac_addr()
1664 if (ioctl(drv->ioctl_sock, SIOCGIFHWADDR, &ifr) < 0) { in wpa_driver_wext_get_mac_addr()
1668 os_memcpy(addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in wpa_driver_wext_get_mac_addr()
Ddriver_mac80211_nl.c183 struct ifreq ifr; in wpa_driver_nl80211_driver_cmd() local