Lines Matching refs:ireq
75 struct ieee80211req ireq; in bsd_set80211() local
77 os_memset(&ireq, 0, sizeof(ireq)); in bsd_set80211()
78 os_strlcpy(ireq.i_name, drv->ifname, sizeof(ireq.i_name)); in bsd_set80211()
79 ireq.i_type = op; in bsd_set80211()
80 ireq.i_val = val; in bsd_set80211()
81 ireq.i_data = (void *) arg; in bsd_set80211()
82 ireq.i_len = arg_len; in bsd_set80211()
84 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) { in bsd_set80211()
94 bsd_get80211(void *priv, struct ieee80211req *ireq, int op, void *arg, in bsd_get80211() argument
99 os_memset(ireq, 0, sizeof(*ireq)); in bsd_get80211()
100 os_strlcpy(ireq->i_name, drv->ifname, sizeof(ireq->i_name)); in bsd_get80211()
101 ireq->i_type = op; in bsd_get80211()
102 ireq->i_len = arg_len; in bsd_get80211()
103 ireq->i_data = arg; in bsd_get80211()
105 if (ioctl(drv->sock, SIOCG80211, ireq) < 0) { in bsd_get80211()
116 struct ieee80211req ireq; in get80211var() local
118 if (bsd_get80211(drv, &ireq, op, arg, arg_len) < 0) in get80211var()
120 return ireq.i_len; in get80211var()
919 struct ieee80211req ireq; in get80211param() local
921 if (bsd_get80211(drv, &ireq, op, NULL, 0) < 0) in get80211param()
923 return ireq.i_val; in get80211param()