Lines Matching defs:global

61 	struct bsd_driver_global *global;
82 struct bsd_driver_global *global = priv;
85 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) {
95 struct bsd_driver_global *global = priv;
98 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) {
121 if (ioctl(drv->global->sock, SIOCS80211, &ireq) < 0) {
142 if (ioctl(drv->global->sock, SIOCG80211, ireq) < 0) {
185 if (ioctl(drv->global->sock, SIOCG80211NWID, &ifr) < 0 ||
208 return ioctl(drv->global->sock, SIOCS80211NWID, &ifr);
223 if (ioctl(drv->global->sock, SIOCGIFMEDIA, &ifmr) < 0) {
242 if (ioctl(drv->global->sock, SIOCSIFMEDIA, &ifr) < 0) {
305 if (ioctl(drv->global->sock, SIOCGIFFLAGS, &ifr) < 0) {
323 if (ioctl(drv->global->sock, SIOCSIFFLAGS, &ifr) < 0) {
396 * Deduce whether group/global or unicast key by checking
397 * the address (yech). Note also that we can only mark global
631 return ioctl(drv->global->sock, SIOCS80211CHANNEL, &creq);
651 bsd_route_overflow(int sock, void *ctx, struct bsd_driver_global *global)
678 drv = bsd_get_drvname(global, ifa->ifa_name);
693 (drv = bsd_get_drvindex(global, sdl->sdl_index)) != NULL) {
708 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) {
755 struct bsd_driver_global *global = sock_ctx;
788 drv = bsd_get_drvindex(global, ifan->ifan_index);
842 drv = bsd_get_drvindex(global, ifan->ifan_index);
848 drv = bsd_get_drvname(global, ifan->ifan_name);
875 wpa_supplicant_event_global(global->ctx,
882 drv = bsd_get_drvindex(global, ifm->ifm_index);
1051 drv->global = params->global_priv;
1071 dl_list_add(&drv->global->ifaces, &drv->list);
1134 if (ioctl(drv->global->sock, SIOCG80211BSSID, &bs) < 0)
1611 if (ioctl(drv->global->sock, SIOCGIFMEDIA, (caddr_t)&ifmr) >= 0) {
1652 drv->global = priv;
1689 dl_list_add(&drv->global->ifaces, &drv->list);
1738 struct bsd_driver_global *global;
1749 global = os_zalloc(sizeof(*global));
1750 if (global == NULL)
1753 global->ctx = ctx;
1754 dl_list_init(&global->ifaces);
1756 global->sock = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
1757 if (global->sock < 0) {
1763 global->route = socket(PF_ROUTE,
1765 if (global->route < 0) {
1772 if (setsockopt(global->route, PF_ROUTE, RO_MSGFILTER,
1780 if (setsockopt(global->route, PF_ROUTE, ROUTE_MSGFILTER,
1786 eloop_register_read_sock(global->route, bsd_wireless_event_receive,
1787 NULL, global);
1789 return global;
1792 close(global->sock);
1794 os_free(global);
1801 struct bsd_driver_global *global = priv;
1803 eloop_unregister_read_sock(global->route);
1804 (void) close(global->route);
1805 (void) close(global->sock);
1806 os_free(global);