Lines Matching refs:ifname
49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param()
79 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid()
104 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid()
133 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_ssid()
176 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_ssid()
219 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_freq()
539 if (len > sizeof(event.interface_status.ifname)) in wpa_driver_wext_event_link()
540 len = sizeof(event.interface_status.ifname) - 1; in wpa_driver_wext_event_link()
541 os_memcpy(event.interface_status.ifname, buf, len); in wpa_driver_wext_event_link()
547 event.interface_status.ifname, in wpa_driver_wext_event_link()
550 if (os_strcmp(drv->ifname, event.interface_status.ifname) == 0) { in wpa_driver_wext_event_link()
559 if (if_nametoindex(drv->ifname) == 0) { in wpa_driver_wext_event_link()
563 drv->ifname); in wpa_driver_wext_event_link()
591 if (os_strcmp(((char *) attr) + rta_len, drv->ifname) in wpa_driver_wext_own_ifname()
611 drv->ifindex = if_nametoindex(drv->ifname); in wpa_driver_wext_own_ifindex()
652 linux_iface_up(drv->ioctl_sock, drv->ifname) == 0) { in wpa_driver_wext_event_rtm_newlink()
656 } else if (if_nametoindex(drv->ifname) == 0) { in wpa_driver_wext_event_rtm_newlink()
659 drv->ifname); in wpa_driver_wext_event_rtm_newlink()
663 "removed", drv->ifname); in wpa_driver_wext_event_rtm_newlink()
739 if (linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 1)) { in wpa_driver_wext_rfkill_unblocked()
756 drv->ifname); in wext_get_phy_name()
777 drv->ifname, drv->phyname); in wext_get_phy_name()
788 void * wpa_driver_wext_init(void *ctx, const char *ifname) in wpa_driver_wext_init() argument
800 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)); in wpa_driver_wext_init()
802 os_snprintf(path, sizeof(path), "/sys/class/net/%s/phy80211", ifname); in wpa_driver_wext_init()
832 os_strlcpy(rcfg->ifname, ifname, sizeof(rcfg->ifname)); in wpa_driver_wext_init()
868 const char *ifname) in wext_hostap_ifname() argument
874 if (strcmp(ifname, ".") == 0 || strcmp(ifname, "..") == 0) in wext_hostap_ifname()
878 drv->ifname, ifname); in wext_hostap_ifname()
889 wpa_printf(MSG_DEBUG, "WEXT: hostap ifname %s type %d", ifname, type); in wext_hostap_ifname()
894 ifname); in wext_hostap_ifname()
895 wpa_driver_wext_alternative_ifindex(drv, ifname); in wext_hostap_ifname()
909 snprintf(buf, sizeof(buf), "/sys/class/net/%s/device/net", drv->ifname); in wext_add_hostap()
943 drv->ifname); in wext_check_hostap()
959 if (os_strncmp(drv->ifname, "wlan", 4) == 0) { in wext_check_hostap()
961 os_strlcpy(ifname2, drv->ifname, sizeof(ifname2)); in wext_check_hostap()
972 if (linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 1) < 0) { in wpa_driver_wext_finish_drv_init()
976 drv->ifname); in wpa_driver_wext_finish_drv_init()
981 "interface '%s' UP", drv->ifname); in wpa_driver_wext_finish_drv_init()
1006 drv->ifindex = if_nametoindex(drv->ifname); in wpa_driver_wext_finish_drv_init()
1051 (void) linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 0); in wpa_driver_wext_deinit()
1099 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_scan()
1152 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_giwscan()
1613 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_range()
1689 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_psk()
1732 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_key_ext()
1831 int wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg, in wpa_driver_wext_set_key() argument
1862 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_key()
1878 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_key()
1925 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_mlme()
1957 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_disconnect()
2020 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_gen_ie()
2078 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_auth_alg_fallback()
2273 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_mode()
2301 if (linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 0) == 0) { in wpa_driver_wext_set_mode()
2310 (void) linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 1); in wpa_driver_wext_set_mode()
2326 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_pmksa()
2384 const char *ifname) in wpa_driver_wext_alternative_ifindex() argument
2386 if (ifname == NULL) { in wpa_driver_wext_alternative_ifindex()
2391 drv->ifindex2 = if_nametoindex(ifname); in wpa_driver_wext_alternative_ifindex()
2396 "wireless events", drv->ifindex2, ifname); in wpa_driver_wext_alternative_ifindex()
2439 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_signal_poll()
2468 if (linux_get_ifhwaddr(drv->ioctl_sock, drv->ifname, addr)) in wpa_driver_wext_status()
2476 drv->ifname, in wpa_driver_wext_status()