Lines Matching refs:ifname
174 os_strlcpy(bss->conf->iface, wpa_s->ifname, sizeof(bss->conf->iface)); in wpa_supplicant_mesh_init()
486 static int wpas_mesh_get_ifname(struct wpa_supplicant *wpa_s, char *ifname, in wpas_mesh_get_ifname() argument
489 char *ifname_ptr = wpa_s->ifname; in wpas_mesh_get_ifname()
492 res = os_snprintf(ifname, len, "mesh-%s-%d", ifname_ptr, in wpas_mesh_get_ifname()
495 (os_strlen(ifname) >= IFNAMSIZ && in wpas_mesh_get_ifname()
496 os_strlen(wpa_s->ifname) < IFNAMSIZ)) { in wpas_mesh_get_ifname()
498 res = os_snprintf(ifname, len, "mesh-%d", wpa_s->mesh_if_idx); in wpas_mesh_get_ifname()
507 int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname, in wpas_mesh_add_interface() argument
514 if (ifname[0] == '\0' && wpas_mesh_get_ifname(wpa_s, ifname, len) < 0) in wpas_mesh_add_interface()
517 if (wpa_drv_if_add(wpa_s, WPA_IF_MESH, ifname, NULL, NULL, NULL, addr, in wpas_mesh_add_interface()
524 MACSTR, ifname, MAC2STR(addr)); in wpas_mesh_add_interface()
527 iface.ifname = ifname; in wpas_mesh_add_interface()