Lines Matching refs:ireq
989 struct iwreq ireq; local
1047 strlcpy(ireq.ifr_ifrn.ifrn_name, handle->opt.source,
1048 sizeof ireq.ifr_ifrn.ifrn_name);
1049 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) != -1) {
1151 struct iwreq ireq; local
1248 strlcpy(ireq.ifr_ifrn.ifrn_name, handlep->device,
1249 sizeof ireq.ifr_ifrn.ifrn_name);
1250 ireq.u.mode = handlep->oldmode;
1251 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {
5116 struct iwreq ireq; local
5121 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5122 sizeof ireq.ifr_ifrn.ifrn_name);
5123 if (ioctl(sock_fd, SIOCGIWNAME, &ireq) >= 0)
5224 struct iwreq ireq; local
5257 memset(&ireq, 0, sizeof ireq);
5258 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5259 sizeof ireq.ifr_ifrn.ifrn_name);
5260 ireq.u.data.pointer = (void *)args;
5261 ireq.u.data.length = 0;
5262 ireq.u.data.flags = 0;
5263 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) != -1) {
5286 priv = malloc(ireq.u.data.length * sizeof (struct iw_priv_args));
5292 ireq.u.data.pointer = (void *)priv;
5293 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) == -1) {
5305 for (i = 0; i < ireq.u.data.length; i++) {
5460 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5461 sizeof ireq.ifr_ifrn.ifrn_name);
5462 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) == -1) {
5472 if (ireq.u.mode == IW_MODE_MONITOR) {
5501 handlep->oldmode = ireq.u.mode;
5515 memset(&ireq, 0, sizeof ireq);
5516 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5517 sizeof ireq.ifr_ifrn.ifrn_name);
5518 ireq.u.data.length = 1; /* 1 argument */
5520 memcpy(ireq.u.name, args, sizeof (int));
5521 if (ioctl(sock_fd, cmd, &ireq) != -1) {
5568 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5569 sizeof ireq.ifr_ifrn.ifrn_name);
5570 ireq.u.mode = IW_MODE_MONITOR;
5571 if (ioctl(sock_fd, SIOCSIWMODE, &ireq) == -1) {
5606 memset(&ireq, 0, sizeof ireq);
5607 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5608 sizeof ireq.ifr_ifrn.ifrn_name);
5610 memcpy(ireq.u.name, args, sizeof (int));
5611 if (ioctl(sock_fd, cmd, &ireq) != -1)
5617 memset(&ireq, 0, sizeof ireq);
5618 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5619 sizeof ireq.ifr_ifrn.ifrn_name);
5621 memcpy(ireq.u.name, args, sizeof (int));
5622 if (ioctl(sock_fd, cmd, &ireq) != -1)
5628 memset(&ireq, 0, sizeof ireq);
5629 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5630 sizeof ireq.ifr_ifrn.ifrn_name);
5632 memcpy(ireq.u.name, args, sizeof (int));
5633 ioctl(sock_fd, cmd, &ireq);
5646 memset(&ireq, 0, sizeof ireq);
5647 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5648 sizeof ireq.ifr_ifrn.ifrn_name);
5650 memcpy(ireq.u.name, args, sizeof (int));
5651 ioctl(sock_fd, cmd, &ireq);
5658 memset(&ireq, 0, sizeof ireq);
5659 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5660 sizeof ireq.ifr_ifrn.ifrn_name);
5661 if (ioctl(sock_fd, SIOCGIWFREQ, &ireq) == -1) {
5667 channel = ireq.u.freq.m;
5673 memset(&ireq, 0, sizeof ireq);
5674 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5675 sizeof ireq.ifr_ifrn.ifrn_name);
5678 memcpy(ireq.u.name, args, 2*sizeof (int));
5679 ioctl(sock_fd, cmd, &ireq);
5687 memset(&ireq, 0, sizeof ireq);
5688 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5689 sizeof ireq.ifr_ifrn.ifrn_name);
5691 memcpy(ireq.u.name, args, sizeof (int));
5692 ioctl(sock_fd, cmd, &ireq);
5699 memset(&ireq, 0, sizeof ireq);
5700 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5701 sizeof ireq.ifr_ifrn.ifrn_name);
5703 memcpy(ireq.u.name, args, sizeof (int));
5704 ioctl(sock_fd, cmd, &ireq);
5711 memset(&ireq, 0, sizeof ireq);
5712 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5713 sizeof ireq.ifr_ifrn.ifrn_name);
5714 ireq.u.data.length = 1; /* 1 argument */
5715 ireq.u.data.pointer = "1";
5716 ireq.u.data.flags = 0;
5717 ioctl(sock_fd, cmd, &ireq);
5724 memset(&ireq, 0, sizeof ireq);
5725 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5726 sizeof ireq.ifr_ifrn.ifrn_name);
5728 memcpy(ireq.u.name, args, sizeof (int));
5729 ioctl(sock_fd, cmd, &ireq);
5746 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {