Lines Matching refs:ireq
112 struct ieee80211req ireq; in bsd_set80211() local
117 os_memset(&ireq, 0, sizeof(ireq)); in bsd_set80211()
118 os_strlcpy(ireq.i_name, drv->ifname, sizeof(ireq.i_name)); in bsd_set80211()
119 ireq.i_type = op; in bsd_set80211()
120 ireq.i_val = val; in bsd_set80211()
121 ireq.i_data = (void *) arg; in bsd_set80211()
122 ireq.i_len = arg_len; in bsd_set80211()
124 if (ioctl(drv->global->sock, SIOCS80211, &ireq) < 0) { in bsd_set80211()
134 bsd_get80211(void *priv, struct ieee80211req *ireq, int op, void *arg, in bsd_get80211() argument
139 os_memset(ireq, 0, sizeof(*ireq)); in bsd_get80211()
140 os_strlcpy(ireq->i_name, drv->ifname, sizeof(ireq->i_name)); in bsd_get80211()
141 ireq->i_type = op; in bsd_get80211()
142 ireq->i_len = arg_len; in bsd_get80211()
143 ireq->i_data = arg; in bsd_get80211()
145 if (ioctl(drv->global->sock, SIOCG80211, ireq) < 0) { in bsd_get80211()
156 struct ieee80211req ireq; in get80211var() local
158 if (bsd_get80211(drv, &ireq, op, arg, arg_len) < 0) in get80211var()
160 return ireq.i_len; in get80211var()
944 struct ieee80211req ireq; in get80211param() local
946 if (bsd_get80211(drv, &ireq, op, NULL, 0) < 0) in get80211param()
948 return ireq.i_val; in get80211param()