Home
last modified time | relevance | path

Searched refs:ifindex (Results 1 – 24 of 24) sorted by relevance

/hostap-3.7.0/tests/hwsim/
Dtest_cfg80211.py37 ifindex = int(dev[0].get_driver_status_field("ifindex"))
38 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
47 def nl80211_frame(dev, ifindex, frame, freq=None, duration=None, offchannel_tx_ok=False): argument
48 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
58 def nl80211_frame_wait_cancel(dev, ifindex, cookie): argument
59 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
63 def nl80211_remain_on_channel(dev, ifindex, freq, duration): argument
64 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
75 ifindex = int(go.get_driver_status_field("ifindex"))
76 res = nl80211_frame(go, ifindex, frame, freq=2422, duration=500,
[all …]
Dtest_p2p_discovery.py613 ifindex = int(dev[0].get_driver_status_field("ifindex"))
614 nl80211_remain_on_channel(dev[0], ifindex, 2417, 200)
/hostap-3.7.0/src/drivers/
Dlinux_ioctl.c153 int ifindex; in linux_br_add_if() local
155 ifindex = if_nametoindex(ifname); in linux_br_add_if()
156 if (ifindex == 0) in linux_br_add_if()
161 ifr.ifr_ifindex = ifindex; in linux_br_add_if()
178 int ifindex; in linux_br_del_if() local
180 ifindex = if_nametoindex(ifname); in linux_br_del_if()
181 if (ifindex == 0) in linux_br_del_if()
186 ifr.ifr_ifindex = ifindex; in linux_br_del_if()
Ddriver_nl80211.c187 int ifindex, int disabled);
245 int ifindex) in get_bss_ifindex() argument
250 if (bss->ifindex == ifindex) in get_bss_ifindex()
636 return nla_put_u32(msg, NL80211_ATTR_IFINDEX, bss->ifindex); in nl80211_set_iface_id()
660 struct nl_msg *msg, int ifindex, int flags, in nl80211_ifindex_msg_build() argument
667 nla_put_u32(msg, NL80211_ATTR_IFINDEX, ifindex)) { in nl80211_ifindex_msg_build()
677 nl80211_ifindex_msg(struct wpa_driver_nl80211_data *drv, int ifindex, in nl80211_ifindex_msg() argument
680 return nl80211_ifindex_msg_build(drv, nlmsg_alloc(), ifindex, flags, in nl80211_ifindex_msg()
688 return nl80211_ifindex_msg(drv, drv->ifindex, flags, cmd); in nl80211_drv_msg()
694 return nl80211_ifindex_msg(bss->drv, bss->ifindex, flags, cmd); in nl80211_bss_msg()
[all …]
Ddriver_nl80211.h55 int ifindex; member
86 int ifindex; member
99 int ifindex; member
264 int ifindex);
Dnetlink.c169 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex, in netlink_send_oper_ifla() argument
191 req.ifinfo.ifi_index = ifindex; in netlink_send_oper_ifla()
215 ifindex, linkmode, linkmode_str(linkmode), in netlink_send_oper_ifla()
Ddriver_bsd.c66 unsigned int ifindex; /* interface index */ member
79 bsd_get_drvindex(void *priv, unsigned int ifindex) in bsd_get_drvindex() argument
85 if (drv->ifindex == ifindex) in bsd_get_drvindex()
110 if (drv->ifindex == 0 || drv->if_removed) in bsd_set80211()
651 (drv->ifindex != sdl->sdl_index || drv->if_removed)) { in bsd_route_overflow()
655 drv->ifindex = sdl->sdl_index; in bsd_route_overflow()
821 drv->ifindex = ifan->ifan_index; in bsd_wireless_event_receive()
844 drv->ifindex = 0; in bsd_wireless_event_receive()
1009 drv->ifindex = if_nametoindex(params->ifname); in bsd_init()
1010 if (drv->ifindex == 0) { in bsd_init()
[all …]
Ddriver_macsec_linux.c38 int ifindex; member
91 unsigned int ifindex) in msg_prepare() argument
106 NLA_PUT_U32(msg, MACSEC_ATTR_IFINDEX, ifindex); in msg_prepare()
536 if (nla_get_u32(tb_msg[MACSEC_ATTR_IFINDEX]) != (u32) arg->ifindex) in dump_callback()
646 ctx->cb_arg.ifindex = drv->ifi; in do_dump()
1000 static int set_active_rx_sa(const struct macsec_genl_ctx *ctx, int ifindex, in set_active_rx_sa() argument
1007 msg = msg_prepare(MACSEC_CMD_UPD_RXSA, ctx, ifindex); in set_active_rx_sa()
1320 static int set_active_tx_sa(const struct macsec_genl_ctx *ctx, int ifindex, in set_active_tx_sa() argument
1327 msg = msg_prepare(MACSEC_CMD_UPD_TXSA, ctx, ifindex); in set_active_tx_sa()
Dnetlink.h25 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
Ddriver_wired_common.h25 int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add);
Ddriver_wired_common.c140 int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add) in wired_multicast_membership() argument
149 mreq.mr_ifindex = ifindex; in wired_multicast_membership()
Ddriver_wext.c605 int ifindex, u8 *buf, size_t len) in wpa_driver_wext_own_ifindex() argument
607 if (drv->ifindex == ifindex || drv->ifindex2 == ifindex) in wpa_driver_wext_own_ifindex()
611 drv->ifindex = if_nametoindex(drv->ifname); in wpa_driver_wext_own_ifindex()
681 netlink_send_oper_ifla(drv->netlink, drv->ifindex, in wpa_driver_wext_event_rtm_newlink()
1011 drv->ifindex = if_nametoindex(drv->ifname); in wpa_driver_wext_finish_drv_init()
1015 netlink_send_oper_ifla(drv->netlink, drv->ifindex, in wpa_driver_wext_finish_drv_init()
1049 netlink_send_oper_ifla(drv->netlink, drv->ifindex, 0, IF_OPER_UP); in wpa_driver_wext_deinit()
2402 return netlink_send_oper_ifla(drv->netlink, drv->ifindex, -1, in wpa_driver_wext_set_operstate()
2468 drv->ifindex, in wpa_driver_wext_status()
Ddriver_wext.h21 int ifindex; member
Ddriver_atheros.c66 int ifindex; member
1558 if (ifi->ifi_index != drv->ifindex) in atheros_wireless_event_rtm_newlink()
1747 drv->ifindex = ifr.ifr_ifindex; in atheros_init()
Ddriver_nl80211_event.c691 struct nlattr *ifindex, struct nlattr *freq, in mlme_event_ch_switch() argument
708 ifidx = nla_get_u32(ifindex); in mlme_event_ch_switch()
3206 ifidx == bss->ifindex || in process_global_event()
Ddriver.h5489 unsigned int ifindex; member
/hostap-3.7.0/src/l2_packet/
Dl2_packet_zephyr.c24 int ifindex; member
61 ll.sll_ifindex = l2->ifindex; in l2_packet_send()
134 l2->ifindex = net_if_get_by_iface(l2->iface); in l2_packet_init()
136 if (!l2->ifindex) { in l2_packet_init()
158 ll.sll_ifindex = l2->ifindex; in l2_packet_init()
174 l2->ifindex); in l2_packet_init()
Dl2_packet_linux.c25 int ifindex; member
133 ll.sll_ifindex = l2->ifindex; in l2_packet_send()
309 l2->ifindex = ifr.ifr_ifindex; in l2_packet_init()
/hostap-3.7.0/wpa_supplicant/
Dwpa_priv.c1120 unsigned int ifindex; in wpa_supplicant_event_global() local
1122 ifindex = iface->driver->get_ifindex(iface->drv_priv); in wpa_supplicant_event_global()
1123 if (ifindex != data->interface_status.ifindex) { in wpa_supplicant_event_global()
1126 iface->ifname, ifindex, in wpa_supplicant_event_global()
1127 data->interface_status.ifindex); in wpa_supplicant_event_global()
Devents.c5804 unsigned int ifindex; in wpa_supplicant_event_global() local
5806 ifindex = wpa_s->driver->get_ifindex(wpa_s->drv_priv); in wpa_supplicant_event_global()
5807 if (ifindex != data->interface_status.ifindex) { in wpa_supplicant_event_global()
5810 ifindex, data->interface_status.ifindex); in wpa_supplicant_event_global()
DChangeLog522 ifindex values to incorrect interface to skip foreign interface events
1907 * fixed driver_wext.c to filter wireless events based on ifindex to
/hostap-3.7.0/src/ap/
Ddrv_callbacks.c2105 unsigned int ifindex; in wpa_supplicant_event_global() local
2107 ifindex = hapd->driver->get_ifindex(hapd->drv_priv); in wpa_supplicant_event_global()
2108 if (ifindex != data->interface_status.ifindex) { in wpa_supplicant_event_global()
2111 ifindex, data->interface_status.ifindex); in wpa_supplicant_event_global()
Dpreauth_auth.c37 int ifindex; member
/hostap-3.7.0/hostapd/
DChangeLog1149 * driver_madwifi: filter wireless events based on ifindex to allow more