Lines Matching refs:req
113 struct iwreq req;
116 memset(&req, 0, sizeof(req));
118 snprintf(req.ifr_name, sizeof(req.ifr_name), "%s", nic->name);
119 req.u.data.pointer = &stats;
120 req.u.data.flags = 1;
121 req.u.data.length = sizeof(struct iw_statistics);
129 if (ioctl(sockfd, SIOCGIWRATE, &req) == -1) {
134 *bitrate = req.u.bitrate.value;
144 struct iwreq req;
147 memset(&req, 0, sizeof(req));
149 snprintf(req.ifr_name, sizeof(req.ifr_name), "%s", nic->name);
150 req.u.data.pointer = &stats;
151 req.u.data.flags = 1;
152 req.u.data.length = sizeof(struct iw_statistics);
164 if (ioctl(sockfd, SIOCGIWSTATS, &req) == -1) {