Lines Matching refs:ifname
68 char ifname[IFNAMSIZ + 1];
214 sep = drv->ifname + os_strlen(drv->ifname);
216 drv->l2 = l2_packet_init(drv->ifname, NULL, ETH_P_ALL,
221 __func__, drv->ifname);
237 return drv->ifname;
350 static void * wpa_driver_roboswitch_init(void *ctx, const char *ifname)
361 /* copy ifname and take a pointer to the second to last character */
362 sep = drv->ifname +
363 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)) - 2;
365 while (sep > drv->ifname && *sep != '.') sep--;
366 if (sep <= drv->ifname) {
368 "interface name %s", __func__, drv->ifname);
376 "in interface name %s", __func__, ifname);
384 "interface name %s", __func__, ifname);
398 os_strlcpy(drv->ifr.ifr_name, drv->ifname, IFNAMSIZ);