Home | History | Annotate | Download | only in drivers

Lines Matching full:ifidx

186 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
188 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
190 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
4131 void nl80211_remove_iface(struct wpa_driver_nl80211_data *drv, int ifidx)
4136 wpa_printf(MSG_DEBUG, "nl80211: Remove interface ifindex=%d", ifidx);
4142 del_ifidx(drv2, ifidx, IFIDX_ANY);
4144 del_ifidx(drv2, IFIDX_ANY, ifidx);
4147 msg = nl80211_ifindex_msg(drv, ifidx, 0, NL80211_CMD_DEL_INTERFACE);
4150 wpa_printf(MSG_ERROR, "Failed to remove interface (ifidx=%d)", ifidx);
4191 int ifidx;
4237 ifidx = if_nametoindex(ifname);
4239 ifname, ifidx);
4241 if (ifidx <= 0)
4253 add_ifidx(drv, ifidx, IFIDX_ANY);
4258 nl80211_remove_iface(drv, ifidx);
4262 return ifidx;
5727 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
5735 ifidx, ifidx_reason);
5736 if (have_ifidx(drv, ifidx, ifidx_reason)) {
5738 ifidx);
5743 drv->if_indices[i] = ifidx;
5780 wpa_printf(MSG_ERROR, "Ignoring EAPOL on interface %d", ifidx);
5790 drv->if_indices[drv->num_if_indices] = ifidx;
5797 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
5803 if ((drv->if_indices[i] == ifidx || ifidx == IFIDX_ANY) &&
5814 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx,
5820 if (drv->if_indices[i] == ifidx &&
6165 int ifidx;
6175 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr,
6178 if (!p2pdev_info.wdev_id_set || ifidx != 0) {
6192 ifidx = nl80211_create_iface(drv, ifname, nlmode, addr,
6194 if (use_existing && ifidx == -ENFILE) {
6196 ifidx = if_nametoindex(ifname);
6197 } else if (ifidx < 0) {
6208 nl80211_remove_iface(drv, ifidx);
6223 nl80211_remove_iface(drv, ifidx);
6231 nl80211_remove_iface(drv, ifidx);
6237 nl80211_remove_iface(drv, ifidx);
6248 nl80211_remove_iface(drv, ifidx);
6258 nl80211_remove_iface(drv, ifidx);
6266 nl80211_remove_iface(drv, ifidx);
6272 new_bss->ifindex = ifidx;
6289 drv->global->if_add_ifindex = ifidx;
6295 if (ifidx > 0 &&
6300 add_ifidx(drv, ifidx, IFIDX_ANY);
7057 static void add_survey(struct nlattr **sinfo, u32 ifidx,
7066 survey->ifidx = ifidx;
7130 u32 ifidx;
7145 ifidx = nla_get_u32(tb[NL80211_ATTR_IFINDEX]);
7173 add_survey(sinfo, ifidx, &survey_results->survey_list);