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()
550 if (len > sizeof(event.interface_status.ifname)) in wpa_driver_wext_event_link()
551 len = sizeof(event.interface_status.ifname) - 1; in wpa_driver_wext_event_link()
552 os_memcpy(event.interface_status.ifname, buf, len); in wpa_driver_wext_event_link()
558 event.interface_status.ifname, in wpa_driver_wext_event_link()
561 if (os_strcmp(drv->ifname, event.interface_status.ifname) == 0) { in wpa_driver_wext_event_link()
570 if (if_nametoindex(drv->ifname) == 0) { in wpa_driver_wext_event_link()
574 drv->ifname); in wpa_driver_wext_event_link()
602 if (os_strcmp(((char *) attr) + rta_len, drv->ifname) in wpa_driver_wext_own_ifname()
622 drv->ifindex = if_nametoindex(drv->ifname); in wpa_driver_wext_own_ifindex()
663 linux_iface_up(drv->ioctl_sock, drv->ifname) == 0) { in wpa_driver_wext_event_rtm_newlink()
667 } else if (if_nametoindex(drv->ifname) == 0) { in wpa_driver_wext_event_rtm_newlink()
670 drv->ifname); in wpa_driver_wext_event_rtm_newlink()
674 "removed", drv->ifname); in wpa_driver_wext_event_rtm_newlink()
750 if (linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 1)) { in wpa_driver_wext_rfkill_unblocked()
767 drv->ifname); in wext_get_phy_name()
788 drv->ifname, drv->phyname); in wext_get_phy_name()
799 void * wpa_driver_wext_init(void *ctx, const char *ifname) in wpa_driver_wext_init() argument
811 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)); in wpa_driver_wext_init()
813 os_snprintf(path, sizeof(path), "/sys/class/net/%s/phy80211", ifname); in wpa_driver_wext_init()
843 os_strlcpy(rcfg->ifname, ifname, sizeof(rcfg->ifname)); in wpa_driver_wext_init()
879 const char *ifname) in wext_hostap_ifname() argument
885 if (strcmp(ifname, ".") == 0 || strcmp(ifname, "..") == 0) in wext_hostap_ifname()
889 drv->ifname, ifname); in wext_hostap_ifname()
898 wpa_printf(MSG_DEBUG, "WEXT: hostap ifname %s type %d", ifname, type); in wext_hostap_ifname()
903 ifname); in wext_hostap_ifname()
904 wpa_driver_wext_alternative_ifindex(drv, ifname); in wext_hostap_ifname()
918 snprintf(buf, sizeof(buf), "/sys/class/net/%s/device/net", drv->ifname); in wext_add_hostap()
952 drv->ifname); in wext_check_hostap()
968 if (os_strncmp(drv->ifname, "wlan", 4) == 0) { in wext_check_hostap()
970 os_strlcpy(ifname2, drv->ifname, sizeof(ifname2)); in wext_check_hostap()
981 if (linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 1) < 0) { in wpa_driver_wext_finish_drv_init()
985 drv->ifname); in wpa_driver_wext_finish_drv_init()
990 "interface '%s' UP", drv->ifname); in wpa_driver_wext_finish_drv_init()
1015 drv->ifindex = if_nametoindex(drv->ifname); in wpa_driver_wext_finish_drv_init()
1059 (void) linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 0); in wpa_driver_wext_deinit()
1107 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_scan()
1160 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_giwscan()
1621 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_range()
1696 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_psk()
1739 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_key_ext()
1838 int wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg, in wpa_driver_wext_set_key() argument
1869 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_key()
1885 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_key()
1932 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_mlme()
1964 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_disconnect()
2027 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_gen_ie()
2085 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_auth_alg_fallback()
2280 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_mode()
2308 if (linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 0) == 0) { in wpa_driver_wext_set_mode()
2317 (void) linux_set_iface_flags(drv->ioctl_sock, drv->ifname, 1); in wpa_driver_wext_set_mode()
2333 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_pmksa()
2389 const char *ifname) in wpa_driver_wext_alternative_ifindex() argument
2391 if (ifname == NULL) { in wpa_driver_wext_alternative_ifindex()
2396 drv->ifindex2 = if_nametoindex(ifname); in wpa_driver_wext_alternative_ifindex()
2401 "wireless events", drv->ifindex2, ifname); in wpa_driver_wext_alternative_ifindex()
2444 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_signal_poll()
2473 if (linux_get_ifhwaddr(drv->ioctl_sock, drv->ifname, addr)) in wpa_driver_wext_status()
2481 drv->ifname, in wpa_driver_wext_status()