Lines Matching refs:ifname
254 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()
314 LOG_ERR("Failed to add interface %s", ifname); in add_interface()
318 while (retry++ < count && !wpa_supplicant_get_iface(ctx->supplicant, ifname)) { in add_interface()
322 wpa_s = wpa_supplicant_get_iface(ctx->supplicant, ifname); in add_interface()
324 LOG_ERR("Failed to add iface %s", ifname); in add_interface()
348 ifname, ret); in add_interface()
352 supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_IFACE_ADDED, 0); in add_interface()
355 supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_READY, 0); in add_interface()
373 char ifname[IFNAMSIZ + 1] = { 0 }; in del_interface() local
375 ret = net_if_get_name(iface, ifname, sizeof(ifname) - 1); in del_interface()
381 LOG_DBG("Removing interface %s %d (%p)", ifname, net_if_get_by_iface(iface), iface); in del_interface()
390 wpa_s = wpa_supplicant_get_iface(ctx->supplicant, ifname); in del_interface()
393 LOG_ERR("Failed to get wpa_s handle for %s", ifname); in del_interface()
397 supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_IFACE_REMOVING, 0); in del_interface()
399 if (sizeof(event->interface_status.ifname) < strlen(ifname)) { in del_interface()
401 ifname, sizeof(event->interface_status.ifname)); in del_interface()
405 os_memcpy(event->interface_status.ifname, ifname, strlen(ifname)); in del_interface()
428 LOG_ERR("Failed to notify remove interface %s", ifname); in del_interface()
429 supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_IFACE_REMOVED, -1); in del_interface()
435 ret = zephyr_wpa_cli_global_cmd_v("interface_remove %s", ifname); in del_interface()
437 LOG_ERR("Failed to remove interface %s", ifname); in del_interface()
438 supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_IFACE_REMOVED, in del_interface()
446 ifname, ret); in del_interface()
451 supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_NOT_READY, 0); in del_interface()
454 supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_IFACE_REMOVED, 0); in del_interface()
643 struct hostapd_iface *hostapd_get_interface(const char *ifname) in hostapd_get_interface() argument
648 (void)ifname; in hostapd_get_interface()
802 params.ifname = hapd->conf->iface; in hostapd_driver_init()
865 char ifname[IFNAMSIZ + 1] = {0}; in hostapd_config_read2() local
881 strncpy(ifname, dev->name, IFNAMSIZ); in hostapd_config_read2()
882 ifname[IFNAMSIZ] = '\0'; in hostapd_config_read2()
908 os_strlcpy(conf->bss[0]->iface, ifname, sizeof(conf->bss[0]->iface)); in hostapd_config_read2()
1014 char ifname[IFNAMSIZ + 1] = { 0 }; in zephyr_hostapd_init() local
1057 ret = net_if_get_name(iface, ifname, sizeof(ifname) - 1); in zephyr_hostapd_init()
1064 interfaces->iface[i] = hostapd_interface_init(interfaces, ifname, in zephyr_hostapd_init()
1107 return wpa_s->ifname; in zephyr_hostap_msg_ifname_cb()