Lines Matching refs:ifidx
183 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx);
184 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx);
185 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx);
3918 void nl80211_remove_iface(struct wpa_driver_nl80211_data *drv, int ifidx) in nl80211_remove_iface() argument
3923 wpa_printf(MSG_DEBUG, "nl80211: Remove interface ifindex=%d", ifidx); in nl80211_remove_iface()
3928 del_ifidx(drv2, ifidx); in nl80211_remove_iface()
3930 msg = nl80211_ifindex_msg(drv, ifidx, 0, NL80211_CMD_DEL_INTERFACE); in nl80211_remove_iface()
3933 wpa_printf(MSG_ERROR, "Failed to remove interface (ifidx=%d)", ifidx); in nl80211_remove_iface()
3974 int ifidx; in nl80211_create_iface_once() local
4020 ifidx = if_nametoindex(ifname); in nl80211_create_iface_once()
4022 ifname, ifidx); in nl80211_create_iface_once()
4024 if (ifidx <= 0) in nl80211_create_iface_once()
4036 add_ifidx(drv, ifidx); in nl80211_create_iface_once()
4041 nl80211_remove_iface(drv, ifidx); in nl80211_create_iface_once()
4045 return ifidx; in nl80211_create_iface_once()
5481 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx) in add_ifidx() argument
5487 ifidx); in add_ifidx()
5488 if (have_ifidx(drv, ifidx)) { in add_ifidx()
5490 ifidx); in add_ifidx()
5495 drv->if_indices[i] = ifidx; in add_ifidx()
5515 wpa_printf(MSG_ERROR, "Ignoring EAPOL on interface %d", ifidx); in add_ifidx()
5520 drv->if_indices[drv->num_if_indices] = ifidx; in add_ifidx()
5526 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx) in del_ifidx() argument
5531 if (drv->if_indices[i] == ifidx) { in del_ifidx()
5540 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx) in have_ifidx() argument
5545 if (drv->if_indices[i] == ifidx) in have_ifidx()
5872 int ifidx; in wpa_driver_nl80211_if_add() local
5882 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
5885 if (!p2pdev_info.wdev_id_set || ifidx != 0) { in wpa_driver_nl80211_if_add()
5899 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
5901 if (use_existing && ifidx == -ENFILE) { in wpa_driver_nl80211_if_add()
5903 ifidx = if_nametoindex(ifname); in wpa_driver_nl80211_if_add()
5904 } else if (ifidx < 0) { in wpa_driver_nl80211_if_add()
5915 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
5930 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
5938 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
5944 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
5955 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
5965 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
5973 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
5979 new_bss->ifindex = ifidx; in wpa_driver_nl80211_if_add()
5996 drv->global->if_add_ifindex = ifidx; in wpa_driver_nl80211_if_add()
6002 if (ifidx > 0 && in wpa_driver_nl80211_if_add()
6007 add_ifidx(drv, ifidx); in wpa_driver_nl80211_if_add()
6713 static void add_survey(struct nlattr **sinfo, u32 ifidx, in add_survey() argument
6722 survey->ifidx = ifidx; in add_survey()
6786 u32 ifidx; in survey_handler() local
6801 ifidx = nla_get_u32(tb[NL80211_ATTR_IFINDEX]); in survey_handler()
6829 add_survey(sinfo, ifidx, &survey_results->survey_list); in survey_handler()