Lines Matching refs:ifname
49 char ifname[IFNAMSIZ + 1]; member
223 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
250 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets()
296 os_strlcpy(ifr.ifr_ifrn.ifrn_name, drv->ifname, IFNAMSIZ); in wired_init_sockets()
371 os_strlcpy(drv->ifname, params->ifname, sizeof(drv->ifname)); in wired_driver_hapd_init()
424 static int wpa_driver_wired_get_ifflags(const char *ifname, int *flags) in wpa_driver_wired_get_ifflags() argument
436 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifflags()
449 static int wpa_driver_wired_set_ifflags(const char *ifname, int flags) in wpa_driver_wired_set_ifflags() argument
461 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_set_ifflags()
475 static int wpa_driver_wired_get_ifstatus(const char *ifname, int *status) in wpa_driver_wired_get_ifstatus() argument
487 os_strlcpy(ifmr.ifm_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifstatus()
503 static int wpa_driver_wired_multi(const char *ifname, const u8 *addr, int add) in wpa_driver_wired_multi() argument
519 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_multi()
558 static void * wpa_driver_wired_init(void *ctx, const char *ifname) in wpa_driver_wired_init() argument
566 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)); in wpa_driver_wired_init()
577 if (wpa_driver_wired_get_ifflags(ifname, &flags) == 0 && in wpa_driver_wired_init()
579 wpa_driver_wired_set_ifflags(ifname, flags | IFF_UP) == 0) { in wpa_driver_wired_init()
584 if_nametoindex(drv->ifname), in wpa_driver_wired_init()
589 } else if (wpa_driver_wired_multi(ifname, pae_group_addr, 1) == 0) { in wpa_driver_wired_init()
593 } else if (wpa_driver_wired_get_ifflags(ifname, &flags) < 0) { in wpa_driver_wired_init()
601 } else if (wpa_driver_wired_set_ifflags(ifname, in wpa_driver_wired_init()
617 while (wpa_driver_wired_get_ifstatus(ifname, &status) == 0 && in wpa_driver_wired_init()
634 if_nametoindex(drv->ifname), in wpa_driver_wired_deinit()
641 wpa_driver_wired_multi(drv->ifname, pae_group_addr, 0) < 0) { in wpa_driver_wired_deinit()
647 (wpa_driver_wired_get_ifflags(drv->ifname, &flags) < 0 || in wpa_driver_wired_deinit()
648 wpa_driver_wired_set_ifflags(drv->ifname, in wpa_driver_wired_deinit()
655 wpa_driver_wired_get_ifflags(drv->ifname, &flags) == 0 && in wpa_driver_wired_deinit()
657 wpa_driver_wired_set_ifflags(drv->ifname, flags & ~IFF_UP) < 0) { in wpa_driver_wired_deinit()