1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_WIRELESS_H
20 #define _UAPI_LINUX_WIRELESS_H
21 #include <linux/types.h>
22 #include <linux/socket.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <linux/if.h>
25 #define WIRELESS_EXT 22
26 #define SIOCSIWCOMMIT 0x8B00
27 #define SIOCGIWNAME 0x8B01
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define SIOCSIWNWID 0x8B02
30 #define SIOCGIWNWID 0x8B03
31 #define SIOCSIWFREQ 0x8B04
32 #define SIOCGIWFREQ 0x8B05
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define SIOCSIWMODE 0x8B06
35 #define SIOCGIWMODE 0x8B07
36 #define SIOCSIWSENS 0x8B08
37 #define SIOCGIWSENS 0x8B09
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define SIOCSIWRANGE 0x8B0A
40 #define SIOCGIWRANGE 0x8B0B
41 #define SIOCSIWPRIV 0x8B0C
42 #define SIOCGIWPRIV 0x8B0D
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define SIOCSIWSTATS 0x8B0E
45 #define SIOCGIWSTATS 0x8B0F
46 #define SIOCSIWSPY 0x8B10
47 #define SIOCGIWSPY 0x8B11
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define SIOCSIWTHRSPY 0x8B12
50 #define SIOCGIWTHRSPY 0x8B13
51 #define SIOCSIWAP 0x8B14
52 #define SIOCGIWAP 0x8B15
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define SIOCGIWAPLIST 0x8B17
55 #define SIOCSIWSCAN 0x8B18
56 #define SIOCGIWSCAN 0x8B19
57 #define SIOCSIWESSID 0x8B1A
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define SIOCGIWESSID 0x8B1B
60 #define SIOCSIWNICKN 0x8B1C
61 #define SIOCGIWNICKN 0x8B1D
62 #define SIOCSIWRATE 0x8B20
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define SIOCGIWRATE 0x8B21
65 #define SIOCSIWRTS 0x8B22
66 #define SIOCGIWRTS 0x8B23
67 #define SIOCSIWFRAG 0x8B24
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define SIOCGIWFRAG 0x8B25
70 #define SIOCSIWTXPOW 0x8B26
71 #define SIOCGIWTXPOW 0x8B27
72 #define SIOCSIWRETRY 0x8B28
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define SIOCGIWRETRY 0x8B29
75 #define SIOCSIWENCODE 0x8B2A
76 #define SIOCGIWENCODE 0x8B2B
77 #define SIOCSIWPOWER 0x8B2C
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define SIOCGIWPOWER 0x8B2D
80 #define SIOCSIWGENIE 0x8B30
81 #define SIOCGIWGENIE 0x8B31
82 #define SIOCSIWMLME 0x8B16
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define SIOCSIWAUTH 0x8B32
85 #define SIOCGIWAUTH 0x8B33
86 #define SIOCSIWENCODEEXT 0x8B34
87 #define SIOCGIWENCODEEXT 0x8B35
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define SIOCSIWPMKSA 0x8B36
90 #define SIOCIWFIRSTPRIV 0x8BE0
91 #define SIOCIWLASTPRIV 0x8BFF
92 #define SIOCIWFIRST 0x8B00
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define SIOCIWLAST SIOCIWLASTPRIV
95 #define IW_IOCTL_IDX(cmd) ((cmd) - SIOCIWFIRST)
96 #define IW_HANDLER(id,func) [IW_IOCTL_IDX(id)] = func
97 #define IW_IS_SET(cmd) (! ((cmd) & 0x1))
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define IW_IS_GET(cmd) ((cmd) & 0x1)
100 #define IWEVTXDROP 0x8C00
101 #define IWEVQUAL 0x8C01
102 #define IWEVCUSTOM 0x8C02
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define IWEVREGISTERED 0x8C03
105 #define IWEVEXPIRED 0x8C04
106 #define IWEVGENIE 0x8C05
107 #define IWEVMICHAELMICFAILURE 0x8C06
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define IWEVASSOCREQIE 0x8C07
110 #define IWEVASSOCRESPIE 0x8C08
111 #define IWEVPMKIDCAND 0x8C09
112 #define IWEVFIRST 0x8C00
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define IW_EVENT_IDX(cmd) ((cmd) - IWEVFIRST)
115 #define IW_PRIV_TYPE_MASK 0x7000
116 #define IW_PRIV_TYPE_NONE 0x0000
117 #define IW_PRIV_TYPE_BYTE 0x1000
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define IW_PRIV_TYPE_CHAR 0x2000
120 #define IW_PRIV_TYPE_INT 0x4000
121 #define IW_PRIV_TYPE_FLOAT 0x5000
122 #define IW_PRIV_TYPE_ADDR 0x6000
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #define IW_PRIV_SIZE_FIXED 0x0800
125 #define IW_PRIV_SIZE_MASK 0x07FF
126 #define IW_MAX_FREQUENCIES 32
127 #define IW_MAX_BITRATES 32
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 #define IW_MAX_TXPOWER 8
130 #define IW_MAX_SPY 8
131 #define IW_MAX_AP 64
132 #define IW_ESSID_MAX_SIZE 32
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 #define IW_MODE_AUTO 0
135 #define IW_MODE_ADHOC 1
136 #define IW_MODE_INFRA 2
137 #define IW_MODE_MASTER 3
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 #define IW_MODE_REPEAT 4
140 #define IW_MODE_SECOND 5
141 #define IW_MODE_MONITOR 6
142 #define IW_MODE_MESH 7
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 #define IW_QUAL_QUAL_UPDATED 0x01
145 #define IW_QUAL_LEVEL_UPDATED 0x02
146 #define IW_QUAL_NOISE_UPDATED 0x04
147 #define IW_QUAL_ALL_UPDATED 0x07
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 #define IW_QUAL_DBM 0x08
150 #define IW_QUAL_QUAL_INVALID 0x10
151 #define IW_QUAL_LEVEL_INVALID 0x20
152 #define IW_QUAL_NOISE_INVALID 0x40
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 #define IW_QUAL_RCPI 0x80
155 #define IW_QUAL_ALL_INVALID 0x70
156 #define IW_FREQ_AUTO 0x00
157 #define IW_FREQ_FIXED 0x01
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 #define IW_MAX_ENCODING_SIZES 8
160 #define IW_ENCODING_TOKEN_MAX 64
161 #define IW_ENCODE_INDEX 0x00FF
162 #define IW_ENCODE_FLAGS 0xFF00
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 #define IW_ENCODE_MODE 0xF000
165 #define IW_ENCODE_DISABLED 0x8000
166 #define IW_ENCODE_ENABLED 0x0000
167 #define IW_ENCODE_RESTRICTED 0x4000
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 #define IW_ENCODE_OPEN 0x2000
170 #define IW_ENCODE_NOKEY 0x0800
171 #define IW_ENCODE_TEMP 0x0400
172 #define IW_POWER_ON 0x0000
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 #define IW_POWER_TYPE 0xF000
175 #define IW_POWER_PERIOD 0x1000
176 #define IW_POWER_TIMEOUT 0x2000
177 #define IW_POWER_MODE 0x0F00
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179 #define IW_POWER_UNICAST_R 0x0100
180 #define IW_POWER_MULTICAST_R 0x0200
181 #define IW_POWER_ALL_R 0x0300
182 #define IW_POWER_FORCE_S 0x0400
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184 #define IW_POWER_REPEATER 0x0800
185 #define IW_POWER_MODIFIER 0x000F
186 #define IW_POWER_MIN 0x0001
187 #define IW_POWER_MAX 0x0002
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 #define IW_POWER_RELATIVE 0x0004
190 #define IW_TXPOW_TYPE 0x00FF
191 #define IW_TXPOW_DBM 0x0000
192 #define IW_TXPOW_MWATT 0x0001
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 #define IW_TXPOW_RELATIVE 0x0002
195 #define IW_TXPOW_RANGE 0x1000
196 #define IW_RETRY_ON 0x0000
197 #define IW_RETRY_TYPE 0xF000
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 #define IW_RETRY_LIMIT 0x1000
200 #define IW_RETRY_LIFETIME 0x2000
201 #define IW_RETRY_MODIFIER 0x00FF
202 #define IW_RETRY_MIN 0x0001
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 #define IW_RETRY_MAX 0x0002
205 #define IW_RETRY_RELATIVE 0x0004
206 #define IW_RETRY_SHORT 0x0010
207 #define IW_RETRY_LONG 0x0020
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 #define IW_SCAN_DEFAULT 0x0000
210 #define IW_SCAN_ALL_ESSID 0x0001
211 #define IW_SCAN_THIS_ESSID 0x0002
212 #define IW_SCAN_ALL_FREQ 0x0004
213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 #define IW_SCAN_THIS_FREQ 0x0008
215 #define IW_SCAN_ALL_MODE 0x0010
216 #define IW_SCAN_THIS_MODE 0x0020
217 #define IW_SCAN_ALL_RATE 0x0040
218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219 #define IW_SCAN_THIS_RATE 0x0080
220 #define IW_SCAN_TYPE_ACTIVE 0
221 #define IW_SCAN_TYPE_PASSIVE 1
222 #define IW_SCAN_MAX_DATA 4096
223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224 #define IW_SCAN_CAPA_NONE 0x00
225 #define IW_SCAN_CAPA_ESSID 0x01
226 #define IW_SCAN_CAPA_BSSID 0x02
227 #define IW_SCAN_CAPA_CHANNEL 0x04
228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 #define IW_SCAN_CAPA_MODE 0x08
230 #define IW_SCAN_CAPA_RATE 0x10
231 #define IW_SCAN_CAPA_TYPE 0x20
232 #define IW_SCAN_CAPA_TIME 0x40
233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234 #define IW_CUSTOM_MAX 256
235 #define IW_GENERIC_IE_MAX 1024
236 #define IW_MLME_DEAUTH 0
237 #define IW_MLME_DISASSOC 1
238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239 #define IW_MLME_AUTH 2
240 #define IW_MLME_ASSOC 3
241 #define IW_AUTH_INDEX 0x0FFF
242 #define IW_AUTH_FLAGS 0xF000
243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244 #define IW_AUTH_WPA_VERSION 0
245 #define IW_AUTH_CIPHER_PAIRWISE 1
246 #define IW_AUTH_CIPHER_GROUP 2
247 #define IW_AUTH_KEY_MGMT 3
248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249 #define IW_AUTH_TKIP_COUNTERMEASURES 4
250 #define IW_AUTH_DROP_UNENCRYPTED 5
251 #define IW_AUTH_80211_AUTH_ALG 6
252 #define IW_AUTH_WPA_ENABLED 7
253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 #define IW_AUTH_RX_UNENCRYPTED_EAPOL 8
255 #define IW_AUTH_ROAMING_CONTROL 9
256 #define IW_AUTH_PRIVACY_INVOKED 10
257 #define IW_AUTH_CIPHER_GROUP_MGMT 11
258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259 #define IW_AUTH_MFP 12
260 #define IW_AUTH_WPA_VERSION_DISABLED 0x00000001
261 #define IW_AUTH_WPA_VERSION_WPA 0x00000002
262 #define IW_AUTH_WPA_VERSION_WPA2 0x00000004
263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 #define IW_AUTH_CIPHER_NONE 0x00000001
265 #define IW_AUTH_CIPHER_WEP40 0x00000002
266 #define IW_AUTH_CIPHER_TKIP 0x00000004
267 #define IW_AUTH_CIPHER_CCMP 0x00000008
268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269 #define IW_AUTH_CIPHER_WEP104 0x00000010
270 #define IW_AUTH_CIPHER_AES_CMAC 0x00000020
271 #define IW_AUTH_KEY_MGMT_802_1X 1
272 #define IW_AUTH_KEY_MGMT_PSK 2
273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274 #define IW_AUTH_ALG_OPEN_SYSTEM 0x00000001
275 #define IW_AUTH_ALG_SHARED_KEY 0x00000002
276 #define IW_AUTH_ALG_LEAP 0x00000004
277 #define IW_AUTH_ROAMING_ENABLE 0
278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279 #define IW_AUTH_ROAMING_DISABLE 1
280 #define IW_AUTH_MFP_DISABLED 0
281 #define IW_AUTH_MFP_OPTIONAL 1
282 #define IW_AUTH_MFP_REQUIRED 2
283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 #define IW_ENCODE_SEQ_MAX_SIZE 8
285 #define IW_ENCODE_ALG_NONE 0
286 #define IW_ENCODE_ALG_WEP 1
287 #define IW_ENCODE_ALG_TKIP 2
288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289 #define IW_ENCODE_ALG_CCMP 3
290 #define IW_ENCODE_ALG_PMK 4
291 #define IW_ENCODE_ALG_AES_CMAC 5
292 #define IW_ENCODE_EXT_TX_SEQ_VALID 0x00000001
293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294 #define IW_ENCODE_EXT_RX_SEQ_VALID 0x00000002
295 #define IW_ENCODE_EXT_GROUP_KEY 0x00000004
296 #define IW_ENCODE_EXT_SET_TX_KEY 0x00000008
297 #define IW_MICFAILURE_KEY_ID 0x00000003
298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299 #define IW_MICFAILURE_GROUP 0x00000004
300 #define IW_MICFAILURE_PAIRWISE 0x00000008
301 #define IW_MICFAILURE_STAKEY 0x00000010
302 #define IW_MICFAILURE_COUNT 0x00000060
303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304 #define IW_ENC_CAPA_WPA 0x00000001
305 #define IW_ENC_CAPA_WPA2 0x00000002
306 #define IW_ENC_CAPA_CIPHER_TKIP 0x00000004
307 #define IW_ENC_CAPA_CIPHER_CCMP 0x00000008
308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309 #define IW_ENC_CAPA_4WAY_HANDSHAKE 0x00000010
310 #define IW_EVENT_CAPA_BASE(cmd) ((cmd >= SIOCIWFIRSTPRIV) ? (cmd - SIOCIWFIRSTPRIV + 0x60) : (cmd - SIOCIWFIRST))
311 #define IW_EVENT_CAPA_INDEX(cmd) (IW_EVENT_CAPA_BASE(cmd) >> 5)
312 #define IW_EVENT_CAPA_MASK(cmd) (1 << (IW_EVENT_CAPA_BASE(cmd) & 0x1F))
313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314 #define IW_EVENT_CAPA_K_0 (IW_EVENT_CAPA_MASK(0x8B04) | IW_EVENT_CAPA_MASK(0x8B06) | IW_EVENT_CAPA_MASK(0x8B1A))
315 #define IW_EVENT_CAPA_K_1 (IW_EVENT_CAPA_MASK(0x8B2A))
316 #define IW_EVENT_CAPA_SET(event_capa,cmd) (event_capa[IW_EVENT_CAPA_INDEX(cmd)] |= IW_EVENT_CAPA_MASK(cmd))
317 #define IW_EVENT_CAPA_SET_KERNEL(event_capa) { event_capa[0] |= IW_EVENT_CAPA_K_0; event_capa[1] |= IW_EVENT_CAPA_K_1; }
318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319 struct iw_param {
320   __s32 value;
321   __u8 fixed;
322   __u8 disabled;
323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324   __u16 flags;
325 };
326 struct iw_point {
327   void __user * pointer;
328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329   __u16 length;
330   __u16 flags;
331 };
332 struct iw_freq {
333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334   __s32 m;
335   __s16 e;
336   __u8 i;
337   __u8 flags;
338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 };
340 struct iw_quality {
341   __u8 qual;
342   __u8 level;
343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344   __u8 noise;
345   __u8 updated;
346 };
347 struct iw_discarded {
348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349   __u32 nwid;
350   __u32 code;
351   __u32 fragment;
352   __u32 retries;
353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354   __u32 misc;
355 };
356 struct iw_missed {
357   __u32 beacon;
358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359 };
360 struct iw_thrspy {
361   struct sockaddr addr;
362   struct iw_quality qual;
363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364   struct iw_quality low;
365   struct iw_quality high;
366 };
367 struct iw_scan_req {
368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369   __u8 scan_type;
370   __u8 essid_len;
371   __u8 num_channels;
372   __u8 flags;
373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374   struct sockaddr bssid;
375   __u8 essid[IW_ESSID_MAX_SIZE];
376   __u32 min_channel_time;
377   __u32 max_channel_time;
378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379   struct iw_freq channel_list[IW_MAX_FREQUENCIES];
380 };
381 struct iw_encode_ext {
382   __u32 ext_flags;
383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384   __u8 tx_seq[IW_ENCODE_SEQ_MAX_SIZE];
385   __u8 rx_seq[IW_ENCODE_SEQ_MAX_SIZE];
386   struct sockaddr addr;
387   __u16 alg;
388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389   __u16 key_len;
390   __u8 key[0];
391 };
392 struct iw_mlme {
393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394   __u16 cmd;
395   __u16 reason_code;
396   struct sockaddr addr;
397 };
398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 #define IW_PMKSA_ADD 1
400 #define IW_PMKSA_REMOVE 2
401 #define IW_PMKSA_FLUSH 3
402 #define IW_PMKID_LEN 16
403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404 struct iw_pmksa {
405   __u32 cmd;
406   struct sockaddr bssid;
407   __u8 pmkid[IW_PMKID_LEN];
408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409 };
410 struct iw_michaelmicfailure {
411   __u32 flags;
412   struct sockaddr src_addr;
413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414   __u8 tsc[IW_ENCODE_SEQ_MAX_SIZE];
415 };
416 #define IW_PMKID_CAND_PREAUTH 0x00000001
417 struct iw_pmkid_cand {
418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
419   __u32 flags;
420   __u32 index;
421   struct sockaddr bssid;
422 };
423 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
424 struct iw_statistics {
425   __u16 status;
426   struct iw_quality qual;
427   struct iw_discarded discard;
428 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
429   struct iw_missed miss;
430 };
431 union iwreq_data {
432   char name[IFNAMSIZ];
433 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
434   struct iw_point essid;
435   struct iw_param nwid;
436   struct iw_freq freq;
437   struct iw_param sens;
438 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
439   struct iw_param bitrate;
440   struct iw_param txpower;
441   struct iw_param rts;
442   struct iw_param frag;
443 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444   __u32 mode;
445   struct iw_param retry;
446   struct iw_point encoding;
447   struct iw_param power;
448 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
449   struct iw_quality qual;
450   struct sockaddr ap_addr;
451   struct sockaddr addr;
452   struct iw_param param;
453 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
454   struct iw_point data;
455 };
456 struct iwreq {
457   union {
458 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
459     char ifrn_name[IFNAMSIZ];
460   } ifr_ifrn;
461   union iwreq_data u;
462 };
463 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464 struct iw_range {
465   __u32 throughput;
466   __u32 min_nwid;
467   __u32 max_nwid;
468 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469   __u16 old_num_channels;
470   __u8 old_num_frequency;
471   __u8 scan_capa;
472   __u32 event_capa[6];
473 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474   __s32 sensitivity;
475   struct iw_quality max_qual;
476   struct iw_quality avg_qual;
477   __u8 num_bitrates;
478 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479   __s32 bitrate[IW_MAX_BITRATES];
480   __s32 min_rts;
481   __s32 max_rts;
482   __s32 min_frag;
483 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484   __s32 max_frag;
485   __s32 min_pmp;
486   __s32 max_pmp;
487   __s32 min_pmt;
488 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489   __s32 max_pmt;
490   __u16 pmp_flags;
491   __u16 pmt_flags;
492   __u16 pm_capa;
493 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494   __u16 encoding_size[IW_MAX_ENCODING_SIZES];
495   __u8 num_encoding_sizes;
496   __u8 max_encoding_tokens;
497   __u8 encoding_login_index;
498 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
499   __u16 txpower_capa;
500   __u8 num_txpower;
501   __s32 txpower[IW_MAX_TXPOWER];
502   __u8 we_version_compiled;
503 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
504   __u8 we_version_source;
505   __u16 retry_capa;
506   __u16 retry_flags;
507   __u16 r_time_flags;
508 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
509   __s32 min_retry;
510   __s32 max_retry;
511   __s32 min_r_time;
512   __s32 max_r_time;
513 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
514   __u16 num_channels;
515   __u8 num_frequency;
516   struct iw_freq freq[IW_MAX_FREQUENCIES];
517   __u32 enc_capa;
518 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
519 };
520 struct iw_priv_args {
521   __u32 cmd;
522   __u16 set_args;
523 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
524   __u16 get_args;
525   char name[IFNAMSIZ];
526 };
527 struct iw_event {
528 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
529   __u16 len;
530   __u16 cmd;
531   union iwreq_data u;
532 };
533 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
534 #define IW_EV_LCP_LEN (sizeof(struct iw_event) - sizeof(union iwreq_data))
535 #define IW_EV_CHAR_LEN (IW_EV_LCP_LEN + IFNAMSIZ)
536 #define IW_EV_UINT_LEN (IW_EV_LCP_LEN + sizeof(__u32))
537 #define IW_EV_FREQ_LEN (IW_EV_LCP_LEN + sizeof(struct iw_freq))
538 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
539 #define IW_EV_PARAM_LEN (IW_EV_LCP_LEN + sizeof(struct iw_param))
540 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr))
541 #define IW_EV_QUAL_LEN (IW_EV_LCP_LEN + sizeof(struct iw_quality))
542 #define IW_EV_POINT_OFF (((char *) & (((struct iw_point *) NULL)->length)) - (char *) NULL)
543 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
544 #define IW_EV_POINT_LEN (IW_EV_LCP_LEN + sizeof(struct iw_point) - IW_EV_POINT_OFF)
545 #define IW_EV_LCP_PK_LEN (4)
546 #define IW_EV_CHAR_PK_LEN (IW_EV_LCP_PK_LEN + IFNAMSIZ)
547 #define IW_EV_UINT_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(__u32))
548 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
549 #define IW_EV_FREQ_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct iw_freq))
550 #define IW_EV_PARAM_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct iw_param))
551 #define IW_EV_ADDR_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct sockaddr))
552 #define IW_EV_QUAL_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct iw_quality))
553 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
554 #define IW_EV_POINT_PK_LEN (IW_EV_LCP_PK_LEN + 4)
555 #endif
556