Lines Matching refs:ireq
72 struct ieee80211req ireq; in bsd_set80211() local
74 os_memset(&ireq, 0, sizeof(ireq)); in bsd_set80211()
75 os_strlcpy(ireq.i_name, drv->ifname, sizeof(ireq.i_name)); in bsd_set80211()
76 ireq.i_type = op; in bsd_set80211()
77 ireq.i_val = val; in bsd_set80211()
78 ireq.i_data = (void *) arg; in bsd_set80211()
79 ireq.i_len = arg_len; in bsd_set80211()
81 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) { in bsd_set80211()
91 bsd_get80211(void *priv, struct ieee80211req *ireq, int op, void *arg, in bsd_get80211() argument
96 os_memset(ireq, 0, sizeof(*ireq)); in bsd_get80211()
97 os_strlcpy(ireq->i_name, drv->ifname, sizeof(ireq->i_name)); in bsd_get80211()
98 ireq->i_type = op; in bsd_get80211()
99 ireq->i_len = arg_len; in bsd_get80211()
100 ireq->i_data = arg; in bsd_get80211()
102 if (ioctl(drv->sock, SIOCG80211, ireq) < 0) { in bsd_get80211()
113 struct ieee80211req ireq; in get80211var() local
115 if (bsd_get80211(drv, &ireq, op, arg, arg_len) < 0) in get80211var()
117 return ireq.i_len; in get80211var()
884 struct ieee80211req ireq; in get80211param() local
886 if (bsd_get80211(drv, &ireq, op, NULL, 0) < 0) in get80211param()
888 return ireq.i_val; in get80211param()