/hostap-3.7.0/tests/hwsim/ |
D | test_cfg80211.py | 37 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 …]
|
D | test_p2p_discovery.py | 613 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/ |
D | linux_ioctl.c | 153 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()
|
D | driver_nl80211.c | 187 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 …]
|
D | driver_nl80211.h | 55 int ifindex; member 86 int ifindex; member 99 int ifindex; member 264 int ifindex);
|
D | netlink.c | 169 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()
|
D | driver_bsd.c | 66 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 …]
|
D | driver_macsec_linux.c | 38 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()
|
D | netlink.h | 25 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
|
D | driver_wired_common.h | 25 int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add);
|
D | driver_wired_common.c | 140 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()
|
D | driver_wext.c | 605 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()
|
D | driver_wext.h | 21 int ifindex; member
|
D | driver_atheros.c | 66 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()
|
D | driver_nl80211_event.c | 691 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()
|
D | driver.h | 5489 unsigned int ifindex; member
|
/hostap-3.7.0/src/l2_packet/ |
D | l2_packet_zephyr.c | 24 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()
|
D | l2_packet_linux.c | 25 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/ |
D | wpa_priv.c | 1120 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()
|
D | events.c | 5804 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()
|
D | ChangeLog | 522 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/ |
D | drv_callbacks.c | 2105 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()
|
D | preauth_auth.c | 37 int ifindex; member
|
/hostap-3.7.0/hostapd/ |
D | ChangeLog | 1149 * driver_madwifi: filter wireless events based on ifindex to allow more
|