• Home
  • Raw
  • Download

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,
5440 void nl80211_remove_iface(struct wpa_driver_nl80211_data *drv, int ifidx) in nl80211_remove_iface() argument
5445 wpa_printf(MSG_DEBUG, "nl80211: Remove interface ifindex=%d", ifidx); in nl80211_remove_iface()
5451 del_ifidx(drv2, ifidx, IFIDX_ANY); in nl80211_remove_iface()
5453 del_ifidx(drv2, IFIDX_ANY, ifidx); in nl80211_remove_iface()
5456 msg = nl80211_ifindex_msg(drv, ifidx, 0, NL80211_CMD_DEL_INTERFACE); in nl80211_remove_iface()
5459 wpa_printf(MSG_ERROR, "Failed to remove interface (ifidx=%d)", ifidx); in nl80211_remove_iface()
5504 int ifidx; in nl80211_create_iface_once() local
5554 ifidx = if_nametoindex(ifname); in nl80211_create_iface_once()
5556 ifname, ifidx); in nl80211_create_iface_once()
5558 if (ifidx <= 0) in nl80211_create_iface_once()
5570 add_ifidx(drv, ifidx, IFIDX_ANY); in nl80211_create_iface_once()
5575 nl80211_remove_iface(drv, ifidx); in nl80211_create_iface_once()
5579 return ifidx; in nl80211_create_iface_once()
7471 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, in add_ifidx() argument
7479 ifidx, ifidx_reason); in add_ifidx()
7480 if (have_ifidx(drv, ifidx, ifidx_reason)) { in add_ifidx()
7482 ifidx); in add_ifidx()
7487 drv->if_indices[i].ifindex = ifidx; in add_ifidx()
7508 wpa_printf(MSG_ERROR, "Ignoring EAPOL on interface %d", ifidx); in add_ifidx()
7514 drv->if_indices[drv->num_if_indices].ifindex = ifidx; in add_ifidx()
7521 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, in del_ifidx() argument
7527 if ((drv->if_indices[i].ifindex == ifidx || in del_ifidx()
7528 ifidx == IFIDX_ANY) && in del_ifidx()
7540 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, in have_ifidx() argument
7546 if (drv->if_indices[i].ifindex == ifidx && in have_ifidx()
7932 int ifidx; in wpa_driver_nl80211_if_add() local
7942 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
7945 if (!p2pdev_info.wdev_id_set || ifidx != 0) { in wpa_driver_nl80211_if_add()
7961 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr, in wpa_driver_nl80211_if_add()
7963 if (use_existing && ifidx == -ENFILE) { in wpa_driver_nl80211_if_add()
7965 ifidx = if_nametoindex(ifname); in wpa_driver_nl80211_if_add()
7966 } else if (ifidx < 0) { in wpa_driver_nl80211_if_add()
7977 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
7992 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8000 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8006 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8017 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8027 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8035 nl80211_remove_iface(drv, ifidx); in wpa_driver_nl80211_if_add()
8041 new_bss->ifindex = ifidx; in wpa_driver_nl80211_if_add()
8058 drv->global->if_add_ifindex = ifidx; in wpa_driver_nl80211_if_add()
8064 if (ifidx > 0 && in wpa_driver_nl80211_if_add()
8069 add_ifidx(drv, ifidx, IFIDX_ANY); in wpa_driver_nl80211_if_add()
8935 static void add_survey(struct nlattr **sinfo, u32 ifidx, in add_survey() argument
8944 survey->ifidx = ifidx; in add_survey()
9008 u32 ifidx; in survey_handler() local
9023 ifidx = nla_get_u32(tb[NL80211_ATTR_IFINDEX]); in survey_handler()
9051 add_survey(sinfo, ifidx, &survey_results->survey_list); in survey_handler()