Lines Matching refs:ifname
187 char ifname[IFNAMSIZ + 1];
325 const char *ifname);
788 if (len > sizeof(event.interface_status.ifname))
789 len = sizeof(event.interface_status.ifname) - 1;
790 os_memcpy(event.interface_status.ifname, buf, len);
796 event.interface_status.ifname,
799 if (os_strcmp(drv->first_bss.ifname, event.interface_status.ifname) == 0) {
822 if (os_strcmp(((char *) attr) + rta_len, drv->first_bss.ifname)
842 drv->first_bss.ifindex = if_nametoindex(drv->first_bss.ifname);
896 drv->first_bss.ifname) > 0) {
916 drv->first_bss.ifname) == 0) {
2756 drv->first_bss.ifname, 1)) {
2773 drv->first_bss.ifname);
2794 drv->first_bss.ifname, drv->phyname);
2886 * @ifname: interface name, e.g., wlan0
2890 static void * wpa_driver_nl80211_init(void *ctx, const char *ifname,
2906 os_strlcpy(bss->ifname, ifname, sizeof(bss->ifname));
2926 os_strlcpy(rcfg->ifname, ifname, sizeof(rcfg->ifname));
3232 drv->ifindex = if_nametoindex(bss->ifname);
3248 if (linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1)) {
3252 bss->ifname);
3257 "interface '%s' UP", bss->ifname);
3269 if (linux_get_ifhwaddr(drv->global->ioctl_sock, bss->ifname,
3321 bss->ifname) < 0)
3324 bss->ifname, bss->brname, strerror(errno));
3365 (void) linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 0);
4056 static int wpa_driver_nl80211_set_key(const char *ifname, void *priv,
4064 int ifindex = if_nametoindex(ifname);
4486 wpa_driver_nl80211_set_key(bss->ifname, priv, WPA_ALG_WEP,
5265 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(bss->ifname));
5283 int ifindex = if_nametoindex(bss->ifname);
5513 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(bss->ifname));
5575 if_nametoindex(bss->ifname));
5636 const char *ifname,
5653 NLA_PUT_STRING(msg, NL80211_ATTR_IFNAME, ifname);
5681 ifname, ret, strerror(-ret));
5685 ifidx = if_nametoindex(ifname);
5687 ifname, ifidx);
5696 linux_set_ifhwaddr(drv->global->ioctl_sock, ifname, addr)) {
5706 const char *ifname, enum nl80211_iftype iftype,
5711 ret = nl80211_create_iface_once(drv, ifname, iftype, addr, wds);
5714 if (ret == -ENFILE && if_nametoindex(ifname)) {
5715 wpa_printf(MSG_INFO, "Try to remove and re-create %s", ifname);
5718 nl80211_remove_iface(drv, if_nametoindex(ifname));
5721 ret = nl80211_create_iface_once(drv, ifname, iftype, addr,
6055 if (os_strncmp(drv->first_bss.ifname, "p2p-", 4) == 0) {
6062 snprintf(buf, IFNAMSIZ, "mon-%s", drv->first_bss.ifname + 4);
6065 snprintf(buf, IFNAMSIZ, "mon.%s", drv->first_bss.ifname);
6318 if_nametoindex(bss->ifname));
6936 bss->ifname, 0);
6946 bss->ifname, 1);
7031 if_nametoindex(bss->ifname));
7197 if_nametoindex(bss->ifname));
7277 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(bss->ifname));
7300 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(bss->ifname));
7346 const char *ifname, int vlan_id)
7360 if_nametoindex(bss->ifname));
7363 if_nametoindex(ifname));
7369 MACSTR " ifname=%s vlan_id=%d) failed: %d (%s)",
7370 MAC2STR(addr), ifname, vlan_id, ret,
7512 os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
7529 i802_set_sta_vlan(priv, addr, bss->ifname, 0);
7558 const char *brname, const char *ifname)
7580 if (linux_br_get(in_br, ifname) == 0) {
7585 "bridge %s", ifname, in_br);
7586 if (linux_br_del_if(drv->global->ioctl_sock, in_br, ifname) <
7591 ifname, brname, strerror(errno));
7597 ifname, brname);
7598 if (linux_br_add_if(drv->global->ioctl_sock, brname, ifname) < 0) {
7601 ifname, brname, strerror(errno));
7620 bss = wpa_driver_nl80211_init(hapd, params->ifname,
7629 if (linux_br_get(brname, params->ifname) == 0) {
7631 params->ifname, brname);
7656 if (linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 0))
7660 if (linux_set_ifhwaddr(drv->global->ioctl_sock, bss->ifname,
7667 "into AP mode", bss->ifname);
7672 i802_check_bridge(drv, bss, params->bridge[0], params->ifname) < 0)
7675 if (linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1))
7690 if (linux_get_ifhwaddr(drv->global->ioctl_sock, bss->ifname,
7774 const char *ifname, const u8 *addr,
7794 ifidx = nl80211_create_iface(drv, ifname,
7805 linux_get_ifhwaddr(drv->global->ioctl_sock, bss->ifname,
7818 if (linux_get_ifhwaddr(drv->global->ioctl_sock, bss->ifname,
7820 linux_get_ifhwaddr(drv->global->ioctl_sock, ifname,
7832 if (linux_set_ifhwaddr(drv->global->ioctl_sock, ifname,
7844 i802_check_bridge(drv, new_bss, bridge, ifname) < 0) {
7846 "interface %s to a bridge %s", ifname, bridge);
7853 if (linux_set_iface_flags(drv->global->ioctl_sock, ifname, 1))
7859 os_strlcpy(new_bss->ifname, ifname, IFNAMSIZ);
7885 const char *ifname)
7889 int ifindex = if_nametoindex(ifname);
7891 wpa_printf(MSG_DEBUG, "nl80211: %s(type=%d ifname=%s) ifindex=%d",
7892 __func__, type, ifname, ifindex);
7899 bss->ifname) < 0)
7902 bss->ifname, bss->brname, strerror(errno));
8276 if (linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1)) {
8408 driver->phyname, driver->first_bss.ifname,
8560 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(bss->ifname));
8859 os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ);
8932 os_strncpy(ifr.ifr_name, bss->ifname, IFNAMSIZ);