Lines Matching refs:drv

31 	struct openbsd_driver_data *drv = priv;  in wpa_driver_openbsd_get_ssid()  local
36 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wpa_driver_openbsd_get_ssid()
38 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 || in wpa_driver_openbsd_get_ssid()
49 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_get_bssid() local
52 os_strlcpy(id.i_name, drv->ifname, sizeof(id.i_name)); in wpa_driver_openbsd_get_bssid()
53 if (ioctl(drv->sock, SIOCG80211BSSID, &id) < 0) in wpa_driver_openbsd_get_bssid()
75 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_set_key() local
82 os_strlcpy(keyavail.i_name, drv->ifname, sizeof(keyavail.i_name)); in wpa_driver_openbsd_set_key()
87 if (ioctl(drv->sock, SIOCS80211KEYAVAIL, &keyavail) < 0) in wpa_driver_openbsd_set_key()
96 struct openbsd_driver_data *drv; in wpa_driver_openbsd_init() local
98 drv = os_zalloc(sizeof(*drv)); in wpa_driver_openbsd_init()
99 if (drv == NULL) in wpa_driver_openbsd_init()
102 drv->sock = socket(PF_INET, SOCK_DGRAM, 0); in wpa_driver_openbsd_init()
103 if (drv->sock < 0) in wpa_driver_openbsd_init()
106 drv->ctx = ctx; in wpa_driver_openbsd_init()
107 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)); in wpa_driver_openbsd_init()
109 return drv; in wpa_driver_openbsd_init()
112 os_free(drv); in wpa_driver_openbsd_init()
120 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_deinit() local
122 close(drv->sock); in wpa_driver_openbsd_deinit()
123 os_free(drv); in wpa_driver_openbsd_deinit()