Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/modules/hostap/src/
Dsupp_main.c254 struct wpa_supplicant *zephyr_get_handle_by_ifname(const char *ifname) in zephyr_get_handle_by_ifname() argument
259 wpa_s = wpa_supplicant_get_iface(ctx->supplicant, ifname); in zephyr_get_handle_by_ifname()
261 wpa_printf(MSG_ERROR, "%s: Unable to get wpa_s handle for %s\n", __func__, ifname); in zephyr_get_handle_by_ifname()
269 struct hostapd_iface *zephyr_get_hapd_handle_by_ifname(const char *ifname) in zephyr_get_hapd_handle_by_ifname() argument
274 hapd = hostapd_get_iface(&ctx->hostapd, ifname); in zephyr_get_hapd_handle_by_ifname()
276 wpa_printf(MSG_ERROR, "%s: Unable to get hapd handle for %s\n", __func__, ifname); in zephyr_get_hapd_handle_by_ifname()
300 char ifname[IFNAMSIZ + 1] = { 0 }; in add_interface() local
303 ret = net_if_get_name(iface, ifname, sizeof(ifname) - 1); in add_interface()
309 LOG_DBG("Adding interface %s [%d] (%p)", ifname, net_if_get_by_iface(iface), iface); in add_interface()
312 ifname, "zephyr", "zephyr", "zephyr"); in add_interface()
[all …]
Dsupp_events.c218 return supplicant_send_wifi_mgmt_event(wpa_s->ifname, in supplicant_send_wifi_mgmt_conn_event()
248 return supplicant_send_wifi_mgmt_event(wpa_s->ifname, in supplicant_send_wifi_mgmt_disc_event()
314 char *ifname = iface->conf->bss[0]->iface; in supplicant_send_wifi_mgmt_ap_status() local
317 char *ifname = wpa_s->ifname; in supplicant_send_wifi_mgmt_ap_status()
321 return supplicant_send_wifi_mgmt_event(ifname, in supplicant_send_wifi_mgmt_ap_status()
334 char *ifname = ap_ctx->bss[0]->conf->iface; in supplicant_send_wifi_mgmt_ap_sta_event() local
337 char *ifname = ap_ctx->ifname; in supplicant_send_wifi_mgmt_ap_sta_event() local
352 return supplicant_send_wifi_mgmt_event(ifname, in supplicant_send_wifi_mgmt_ap_sta_event()
359 int supplicant_send_wifi_mgmt_event(const char *ifname, enum net_event_wifi_cmd event, in supplicant_send_wifi_mgmt_event() argument
362 struct net_if *iface = net_if_get_by_index(net_if_get_by_name(ifname)); in supplicant_send_wifi_mgmt_event()
[all …]
Dsupp_main.h54 struct wpa_supplicant *zephyr_get_handle_by_ifname(const char *ifname);
60 struct hostapd_iface *zephyr_get_hapd_handle_by_ifname(const char *ifname);
Dsupp_events.h48 int supplicant_send_wifi_mgmt_event(const char *ifname,
52 int supplicant_generate_state_event(const char *ifname,
Dsupp_api.c225 supplicant_send_wifi_mgmt_event(wpa_s->ifname, in supp_shell_connect_status()
/Zephyr-latest/include/zephyr/posix/net/
Dif.h24 char *if_indextoname(unsigned int ifindex, char *ifname);
27 unsigned int if_nametoindex(const char *ifname);
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/
Dfmac_main.h56 char ifname[16]; member
91 const char *ifname; member
Dwpa_supp_if.h54 const unsigned char *ifname,
/Zephyr-latest/lib/posix/options/
Dnet.c99 char *if_indextoname(unsigned int ifindex, char *ifname) in if_indextoname() argument
103 ret = net_if_get_name(net_if_get_by_index(ifindex), ifname, IF_NAMESIZE); in if_indextoname()
109 return ifname; in if_indextoname()
168 unsigned int if_nametoindex(const char *ifname) in if_nametoindex() argument
172 ret = net_if_get_by_name(ifname); in if_nametoindex()
/Zephyr-latest/subsys/net/lib/shell/
Diface.c188 char ifname[CONFIG_NET_INTERFACE_NAME_LEN + 1] = { 0 }; in iface_cb() local
191 ret_name = net_if_get_name(iface, ifname, sizeof(ifname) - 1); in iface_cb()
192 if (ret_name < 1 || ifname[0] == '\0') { in iface_cb()
193 snprintk(ifname, sizeof(ifname), "?"); in iface_cb()
196 PR("\nInterface %s (%p) (%s) [%d]\n", ifname, iface, iface2str(iface, &extra), in iface_cb()
/Zephyr-latest/tests/net/vlan/src/
Dmain.c900 char ifname[CONFIG_NET_INTERFACE_NAME_LEN]; in ZTEST() local
932 ret = net_if_get_name(iface, ifname, sizeof(ifname)); in ZTEST()
935 strncpy(ifreq.ifr_name, ifname, sizeof(ifreq.ifr_name)); in ZTEST()
/Zephyr-latest/cmake/modules/
Dkernel.cmake195 …-nic tap,model=${CONFIG_ETH_NIC_MODEL},script=no,downscript=no,ifname=${CONFIG_ETH_QEMU_IFACE_NAME…
/Zephyr-latest/tests/net/socket/udp/src/
Dmain.c1961 char ifname[CONFIG_NET_INTERFACE_NAME_LEN]; in test_check_ttl() local
1977 ret = net_if_get_name(lo0, ifname, sizeof(ifname)); in test_check_ttl()
1980 strncpy(ifreq.ifr_name, ifname, sizeof(ifreq.ifr_name)); in test_check_ttl()
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dnet_if.c805 memcpy(vif_ctx_zep->ifname, in nrf_wifi_if_start_zep()
Dwpa_supp_if.c948 int nrf_wifi_wpa_supp_set_key(void *if_priv, const unsigned char *ifname, enum wpa_alg alg, in nrf_wifi_wpa_supp_set_key() argument
962 if ((!if_priv) || (!ifname)) { in nrf_wifi_wpa_supp_set_key()