Lines Matching refs:ifidx

178 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
180 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
182 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
4816 int ifidx; in nl80211_mbssid() local
4828 ifidx = if_nametoindex(params->mbssid_tx_iface); in nl80211_mbssid()
4829 if (ifidx <= 0 || in nl80211_mbssid()
4831 ifidx)) in nl80211_mbssid()
5938 void nl80211_remove_iface(struct wpa_driver_nl80211_data *drv, int ifidx) in nl80211_remove_iface() argument
5943 wpa_printf(MSG_DEBUG, "nl80211: Remove interface ifindex=%d", ifidx); in nl80211_remove_iface()
5949 del_ifidx(drv2, ifidx, IFIDX_ANY); in nl80211_remove_iface()
5951 del_ifidx(drv2, IFIDX_ANY, ifidx); in nl80211_remove_iface()
5954 msg = nl80211_ifindex_msg(drv, ifidx, 0, NL80211_CMD_DEL_INTERFACE); in nl80211_remove_iface()
5957 wpa_printf(MSG_ERROR, "Failed to remove interface (ifidx=%d)", ifidx); in nl80211_remove_iface()
6002 int ifidx; in nl80211_create_iface_once() local
6052 ifidx = if_nametoindex(ifname); in nl80211_create_iface_once()
6054 ifname, ifidx); in nl80211_create_iface_once()
6056 if (ifidx <= 0) in nl80211_create_iface_once()
6068 add_ifidx(drv, ifidx, IFIDX_ANY); in nl80211_create_iface_once()
6073 nl80211_remove_iface(drv, ifidx); in nl80211_create_iface_once()
6077 return ifidx; in nl80211_create_iface_once()
8332 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, in add_ifidx() argument
8340 ifidx, ifidx_reason); in add_ifidx()
8341 if (have_ifidx(drv, ifidx, ifidx_reason)) { in add_ifidx()
8343 ifidx); in add_ifidx()
8348 drv->if_indices[i].ifindex = ifidx; in add_ifidx()
8369 wpa_printf(MSG_ERROR, "Ignoring EAPOL on interface %d", ifidx); in add_ifidx()
8375 drv->if_indices[drv->num_if_indices].ifindex = ifidx; in add_ifidx()
8382 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, in del_ifidx() argument
8388 if ((drv->if_indices[i].ifindex == ifidx || in del_ifidx()
8389 ifidx == IFIDX_ANY) && in del_ifidx()
8401 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, in have_ifidx() argument
8407 if (drv->if_indices[i].ifindex == ifidx && in have_ifidx()
8793 int ifidx; in wpa_driver_nl80211_if_add() local
8803 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
8806 if (!p2pdev_info.wdev_id_set || ifidx != 0) { in wpa_driver_nl80211_if_add()
8820 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
8822 if (use_existing && ifidx == -ENFILE) { in wpa_driver_nl80211_if_add()
8824 ifidx = if_nametoindex(ifname); in wpa_driver_nl80211_if_add()
8825 } else if (ifidx < 0) { in wpa_driver_nl80211_if_add()
8836 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8851 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8859 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8865 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8877 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8887 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8895 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8901 new_bss->ifindex = ifidx; in wpa_driver_nl80211_if_add()
8922 drv->global->if_add_ifindex = ifidx; in wpa_driver_nl80211_if_add()
8928 if (ifidx > 0 && in wpa_driver_nl80211_if_add()
8933 add_ifidx(drv, ifidx, IFIDX_ANY); in wpa_driver_nl80211_if_add()
10122 static void add_survey(struct nlattr **sinfo, u32 ifidx, in add_survey() argument
10131 survey->ifidx = ifidx; in add_survey()
10195 u32 ifidx; in survey_handler() local
10210 ifidx = nla_get_u32(tb[NL80211_ATTR_IFINDEX]); in survey_handler()
10238 add_survey(sinfo, ifidx, &survey_results->survey_list); in survey_handler()