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) {
402 * Deduce whether group/global or unicast key by checking
403 * the address (yech). Note also that we can only mark global
648 return ioctl(drv->global->sock, SIOCS80211CHANNEL, &creq);
668 bsd_route_overflow(int sock, void *ctx, struct bsd_driver_global *global)
695 drv = bsd_get_drvname(global, ifa->ifa_name);
710 (drv = bsd_get_drvindex(global, sdl->sdl_index)) != NULL) {
725 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) {
772 struct bsd_driver_global *global = sock_ctx;
805 drv = bsd_get_drvindex(global, ifan->ifan_index);
859 drv = bsd_get_drvindex(global, ifan->ifan_index);
865 drv = bsd_get_drvname(global, ifan->ifan_name);
892 wpa_supplicant_event_global(global->ctx,
899 drv = bsd_get_drvindex(global, ifm->ifm_index);
1070 drv->global = params->global_priv;
1090 dl_list_add(&drv->global->ifaces, &drv->list);
1153 if (ioctl(drv->global->sock, SIOCG80211BSSID, &bs) < 0)
1634 if (ioctl(drv->global->sock, SIOCGIFMEDIA, (caddr_t)&ifmr) >= 0) {
1675 drv->global = priv;
1712 dl_list_add(&drv->global->ifaces, &drv->list);
1761 struct bsd_driver_global *global;
1772 global = os_zalloc(sizeof(*global));
1773 if (global == NULL)
1776 global->ctx = ctx;
1777 dl_list_init(&global->ifaces);
1779 global->sock = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
1780 if (global->sock < 0) {
1786 global->route = socket(PF_ROUTE,
1788 if (global->route < 0) {
1795 if (setsockopt(global->route, PF_ROUTE, RO_MSGFILTER,
1803 if (setsockopt(global->route, PF_ROUTE, ROUTE_MSGFILTER,
1809 eloop_register_read_sock(global->route, bsd_wireless_event_receive,
1810 NULL, global);
1812 return global;
1815 close(global->sock);
1817 os_free(global);
1824 struct bsd_driver_global *global = priv;
1826 eloop_unregister_read_sock(global->route);
1827 (void) close(global->route);
1828 (void) close(global->sock);
1829 os_free(global);