Lines Matching refs:ireq

1072 	struct iwreq ireq;  local
1130 strlcpy(ireq.ifr_ifrn.ifrn_name, handle->opt.device,
1131 sizeof ireq.ifr_ifrn.ifrn_name);
1132 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) != -1) {
1234 struct iwreq ireq; local
1331 strlcpy(ireq.ifr_ifrn.ifrn_name, handlep->device,
1332 sizeof ireq.ifr_ifrn.ifrn_name);
1333 ireq.u.mode = handlep->oldmode;
1334 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {
5604 struct iwreq ireq; local
5609 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5610 sizeof ireq.ifr_ifrn.ifrn_name);
5611 if (ioctl(sock_fd, SIOCGIWNAME, &ireq) >= 0)
5712 struct iwreq ireq; local
5745 memset(&ireq, 0, sizeof ireq);
5746 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5747 sizeof ireq.ifr_ifrn.ifrn_name);
5748 ireq.u.data.pointer = (void *)args;
5749 ireq.u.data.length = 0;
5750 ireq.u.data.flags = 0;
5751 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) != -1) {
5773 priv = malloc(ireq.u.data.length * sizeof (struct iw_priv_args));
5779 ireq.u.data.pointer = (void *)priv;
5780 if (ioctl(sock_fd, SIOCGIWPRIV, &ireq) == -1) {
5791 for (i = 0; i < ireq.u.data.length; i++) {
5946 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
5947 sizeof ireq.ifr_ifrn.ifrn_name);
5948 if (ioctl(sock_fd, SIOCGIWMODE, &ireq) == -1) {
5958 if (ireq.u.mode == IW_MODE_MONITOR) {
5987 handlep->oldmode = ireq.u.mode;
6001 memset(&ireq, 0, sizeof ireq);
6002 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6003 sizeof ireq.ifr_ifrn.ifrn_name);
6004 ireq.u.data.length = 1; /* 1 argument */
6006 memcpy(ireq.u.name, args, sizeof (int));
6007 if (ioctl(sock_fd, cmd, &ireq) != -1) {
6055 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6056 sizeof ireq.ifr_ifrn.ifrn_name);
6057 ireq.u.mode = IW_MODE_MONITOR;
6058 if (ioctl(sock_fd, SIOCSIWMODE, &ireq) == -1) {
6094 memset(&ireq, 0, sizeof ireq);
6095 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6096 sizeof ireq.ifr_ifrn.ifrn_name);
6098 memcpy(ireq.u.name, args, sizeof (int));
6099 if (ioctl(sock_fd, cmd, &ireq) != -1)
6105 memset(&ireq, 0, sizeof ireq);
6106 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6107 sizeof ireq.ifr_ifrn.ifrn_name);
6109 memcpy(ireq.u.name, args, sizeof (int));
6110 if (ioctl(sock_fd, cmd, &ireq) != -1)
6116 memset(&ireq, 0, sizeof ireq);
6117 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6118 sizeof ireq.ifr_ifrn.ifrn_name);
6120 memcpy(ireq.u.name, args, sizeof (int));
6121 ioctl(sock_fd, cmd, &ireq);
6134 memset(&ireq, 0, sizeof ireq);
6135 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6136 sizeof ireq.ifr_ifrn.ifrn_name);
6138 memcpy(ireq.u.name, args, sizeof (int));
6139 ioctl(sock_fd, cmd, &ireq);
6146 memset(&ireq, 0, sizeof ireq);
6147 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6148 sizeof ireq.ifr_ifrn.ifrn_name);
6149 if (ioctl(sock_fd, SIOCGIWFREQ, &ireq) == -1) {
6154 channel = ireq.u.freq.m;
6160 memset(&ireq, 0, sizeof ireq);
6161 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6162 sizeof ireq.ifr_ifrn.ifrn_name);
6165 memcpy(ireq.u.name, args, 2*sizeof (int));
6166 ioctl(sock_fd, cmd, &ireq);
6174 memset(&ireq, 0, sizeof ireq);
6175 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6176 sizeof ireq.ifr_ifrn.ifrn_name);
6178 memcpy(ireq.u.name, args, sizeof (int));
6179 ioctl(sock_fd, cmd, &ireq);
6186 memset(&ireq, 0, sizeof ireq);
6187 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6188 sizeof ireq.ifr_ifrn.ifrn_name);
6190 memcpy(ireq.u.name, args, sizeof (int));
6191 ioctl(sock_fd, cmd, &ireq);
6198 memset(&ireq, 0, sizeof ireq);
6199 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6200 sizeof ireq.ifr_ifrn.ifrn_name);
6201 ireq.u.data.length = 1; /* 1 argument */
6202 ireq.u.data.pointer = "1";
6203 ireq.u.data.flags = 0;
6204 ioctl(sock_fd, cmd, &ireq);
6211 memset(&ireq, 0, sizeof ireq);
6212 strlcpy(ireq.ifr_ifrn.ifrn_name, device,
6213 sizeof ireq.ifr_ifrn.ifrn_name);
6215 memcpy(ireq.u.name, args, sizeof (int));
6216 ioctl(sock_fd, cmd, &ireq);
6234 if (ioctl(handle->fd, SIOCSIWMODE, &ireq) == -1) {