Lines Matching refs:ireq
924 struct iwreq ireq; local
976 strncpy(ireq.ifr_ifrn.ifrn_name, handle->opt.source,
977 sizeof ireq.ifr_ifrn.ifrn_name);
978 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
979 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) != -1) {
1081 struct iwreq ireq; local
1178 strncpy(ireq.ifr_ifrn.ifrn_name, handlep->device,
1179 sizeof ireq.ifr_ifrn.ifrn_name);
1180 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1]
1182 ireq.u.mode = handlep->oldmode;
1183 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {
4733 struct iwreq ireq; local
4735 strncpy(ireq.ifr_ifrn.ifrn_name, device,
4736 sizeof ireq.ifr_ifrn.ifrn_name);
4737 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
4738 if (ioctl(sock_fd, SIOCGIWNAME, &ireq) >= 0)
4839 struct iwreq ireq; local
4872 memset(&ireq, 0, sizeof ireq);
4873 strncpy(ireq.ifr_ifrn.ifrn_name, device,
4874 sizeof ireq.ifr_ifrn.ifrn_name);
4875 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
4876 ireq.u.data.pointer = (void *)args;
4877 ireq.u.data.length = 0;
4878 ireq.u.data.flags = 0;
4879 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) != -1) {
4902 priv = malloc(ireq.u.data.length * sizeof (struct iw_priv_args));
4908 ireq.u.data.pointer = (void *)priv;
4909 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) == -1) {
4921 for (i = 0; i < ireq.u.data.length; i++) {
5076 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5077 sizeof ireq.ifr_ifrn.ifrn_name);
5078 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5079 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) == -1) {
5089 if (ireq.u.mode == IW_MODE_MONITOR) {
5118 handlep->oldmode = ireq.u.mode;
5132 memset(&ireq, 0, sizeof ireq);
5133 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5134 sizeof ireq.ifr_ifrn.ifrn_name);
5135 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5136 ireq.u.data.length = 1; /* 1 argument */
5138 memcpy(ireq.u.name, args, sizeof (int));
5139 if (ioctl(sock_fd, cmd, &ireq) != -1) {
5186 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5187 sizeof ireq.ifr_ifrn.ifrn_name);
5188 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5189 ireq.u.mode = IW_MODE_MONITOR;
5190 if (ioctl(sock_fd, SIOCSIWMODE, &ireq) == -1) {
5225 memset(&ireq, 0, sizeof ireq);
5226 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5227 sizeof ireq.ifr_ifrn.ifrn_name);
5228 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5230 memcpy(ireq.u.name, args, sizeof (int));
5231 if (ioctl(sock_fd, cmd, &ireq) != -1)
5237 memset(&ireq, 0, sizeof ireq);
5238 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5239 sizeof ireq.ifr_ifrn.ifrn_name);
5240 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5242 memcpy(ireq.u.name, args, sizeof (int));
5243 if (ioctl(sock_fd, cmd, &ireq) != -1)
5249 memset(&ireq, 0, sizeof ireq);
5250 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5251 sizeof ireq.ifr_ifrn.ifrn_name);
5252 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5254 memcpy(ireq.u.name, args, sizeof (int));
5255 ioctl(sock_fd, cmd, &ireq);
5268 memset(&ireq, 0, sizeof ireq);
5269 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5270 sizeof ireq.ifr_ifrn.ifrn_name);
5271 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5273 memcpy(ireq.u.name, args, sizeof (int));
5274 ioctl(sock_fd, cmd, &ireq);
5281 memset(&ireq, 0, sizeof ireq);
5282 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5283 sizeof ireq.ifr_ifrn.ifrn_name);
5284 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5285 if (ioctl(sock_fd, SIOCGIWFREQ, &ireq) == -1) {
5291 channel = ireq.u.freq.m;
5297 memset(&ireq, 0, sizeof ireq);
5298 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5299 sizeof ireq.ifr_ifrn.ifrn_name);
5300 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5303 memcpy(ireq.u.name, args, 2*sizeof (int));
5304 ioctl(sock_fd, cmd, &ireq);
5312 memset(&ireq, 0, sizeof ireq);
5313 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5314 sizeof ireq.ifr_ifrn.ifrn_name);
5315 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5317 memcpy(ireq.u.name, args, sizeof (int));
5318 ioctl(sock_fd, cmd, &ireq);
5325 memset(&ireq, 0, sizeof ireq);
5326 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5327 sizeof ireq.ifr_ifrn.ifrn_name);
5328 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5330 memcpy(ireq.u.name, args, sizeof (int));
5331 ioctl(sock_fd, cmd, &ireq);
5338 memset(&ireq, 0, sizeof ireq);
5339 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5340 sizeof ireq.ifr_ifrn.ifrn_name);
5341 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5342 ireq.u.data.length = 1; /* 1 argument */
5343 ireq.u.data.pointer = "1";
5344 ireq.u.data.flags = 0;
5345 ioctl(sock_fd, cmd, &ireq);
5352 memset(&ireq, 0, sizeof ireq);
5353 strncpy(ireq.ifr_ifrn.ifrn_name, device,
5354 sizeof ireq.ifr_ifrn.ifrn_name);
5355 ireq.ifr_ifrn.ifrn_name[sizeof ireq.ifr_ifrn.ifrn_name - 1] = 0;
5357 memcpy(ireq.u.name, args, sizeof (int));
5358 ioctl(sock_fd, cmd, &ireq);
5375 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {