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 */
319struct iw_param
320{
321 __s32 value;
322 __u8 fixed;
323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324 __u8 disabled;
325 __u16 flags;
326};
327struct iw_point
328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329{
330 void __user *pointer;
331 __u16 length;
332 __u16 flags;
333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334};
335struct iw_freq
336{
337 __s32 m;
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 __s16 e;
340 __u8 i;
341 __u8 flags;
342};
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344struct iw_quality
345{
346 __u8 qual;
347 __u8 level;
348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349 __u8 noise;
350 __u8 updated;
351};
352struct iw_discarded
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354{
355 __u32 nwid;
356 __u32 code;
357 __u32 fragment;
358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359 __u32 retries;
360 __u32 misc;
361};
362struct iw_missed
363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364{
365 __u32 beacon;
366};
367struct iw_thrspy
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369{
370 struct sockaddr addr;
371 struct iw_quality qual;
372 struct iw_quality low;
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374 struct iw_quality high;
375};
376struct iw_scan_req
377{
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379 __u8 scan_type;
380 __u8 essid_len;
381 __u8 num_channels;
382 __u8 flags;
383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384 struct sockaddr bssid;
385 __u8 essid[IW_ESSID_MAX_SIZE];
386 __u32 min_channel_time;
387 __u32 max_channel_time;
388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389 struct iw_freq channel_list[IW_MAX_FREQUENCIES];
390};
391struct iw_encode_ext
392{
393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394 __u32 ext_flags;
395 __u8 tx_seq[IW_ENCODE_SEQ_MAX_SIZE];
396 __u8 rx_seq[IW_ENCODE_SEQ_MAX_SIZE];
397 struct sockaddr addr;
398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 __u16 alg;
400 __u16 key_len;
401 __u8 key[0];
402};
403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404struct iw_mlme
405{
406 __u16 cmd;
407 __u16 reason_code;
408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409 struct sockaddr addr;
410};
411#define IW_PMKSA_ADD 1
412#define IW_PMKSA_REMOVE 2
413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414#define IW_PMKSA_FLUSH 3
415#define IW_PMKID_LEN 16
416struct iw_pmksa
417{
418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
419 __u32 cmd;
420 struct sockaddr bssid;
421 __u8 pmkid[IW_PMKID_LEN];
422};
423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
424struct iw_michaelmicfailure
425{
426 __u32 flags;
427 struct sockaddr src_addr;
428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
429 __u8 tsc[IW_ENCODE_SEQ_MAX_SIZE];
430};
431#define IW_PMKID_CAND_PREAUTH 0x00000001
432struct iw_pmkid_cand
433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
434{
435 __u32 flags;
436 __u32 index;
437 struct sockaddr bssid;
438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
439};
440struct iw_statistics
441{
442 __u16 status;
443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444 struct iw_quality qual;
445 struct iw_discarded discard;
446 struct iw_missed miss;
447};
448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
449union iwreq_data
450{
451 char name[IFNAMSIZ];
452 struct iw_point essid;
453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
454 struct iw_param nwid;
455 struct iw_freq freq;
456 struct iw_param sens;
457 struct iw_param bitrate;
458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
459 struct iw_param txpower;
460 struct iw_param rts;
461 struct iw_param frag;
462 __u32 mode;
463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464 struct iw_param retry;
465 struct iw_point encoding;
466 struct iw_param power;
467 struct iw_quality qual;
468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469 struct sockaddr ap_addr;
470 struct sockaddr addr;
471 struct iw_param param;
472 struct iw_point data;
473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474};
475struct iwreq
476{
477 union
478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479 {
480 char ifrn_name[IFNAMSIZ];
481 } ifr_ifrn;
482 union iwreq_data u;
483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484};
485struct iw_range
486{
487 __u32 throughput;
488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489 __u32 min_nwid;
490 __u32 max_nwid;
491 __u16 old_num_channels;
492 __u8 old_num_frequency;
493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494 __u8 scan_capa;
495 __u32 event_capa[6];
496 __s32 sensitivity;
497 struct iw_quality max_qual;
498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
499 struct iw_quality avg_qual;
500 __u8 num_bitrates;
501 __s32 bitrate[IW_MAX_BITRATES];
502 __s32 min_rts;
503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
504 __s32 max_rts;
505 __s32 min_frag;
506 __s32 max_frag;
507 __s32 min_pmp;
508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
509 __s32 max_pmp;
510 __s32 min_pmt;
511 __s32 max_pmt;
512 __u16 pmp_flags;
513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
514 __u16 pmt_flags;
515 __u16 pm_capa;
516 __u16 encoding_size[IW_MAX_ENCODING_SIZES];
517 __u8 num_encoding_sizes;
518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
519 __u8 max_encoding_tokens;
520 __u8 encoding_login_index;
521 __u16 txpower_capa;
522 __u8 num_txpower;
523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
524 __s32 txpower[IW_MAX_TXPOWER];
525 __u8 we_version_compiled;
526 __u8 we_version_source;
527 __u16 retry_capa;
528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
529 __u16 retry_flags;
530 __u16 r_time_flags;
531 __s32 min_retry;
532 __s32 max_retry;
533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
534 __s32 min_r_time;
535 __s32 max_r_time;
536 __u16 num_channels;
537 __u8 num_frequency;
538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
539 struct iw_freq freq[IW_MAX_FREQUENCIES];
540 __u32 enc_capa;
541};
542struct iw_priv_args
543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
544{
545 __u32 cmd;
546 __u16 set_args;
547 __u16 get_args;
548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
549 char name[IFNAMSIZ];
550};
551struct iw_event
552{
553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
554 __u16 len;
555 __u16 cmd;
556 union iwreq_data u;
557};
558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
559#define IW_EV_LCP_LEN (sizeof(struct iw_event) - sizeof(union iwreq_data))
560#define IW_EV_CHAR_LEN (IW_EV_LCP_LEN + IFNAMSIZ)
561#define IW_EV_UINT_LEN (IW_EV_LCP_LEN + sizeof(__u32))
562#define IW_EV_FREQ_LEN (IW_EV_LCP_LEN + sizeof(struct iw_freq))
563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
564#define IW_EV_PARAM_LEN (IW_EV_LCP_LEN + sizeof(struct iw_param))
565#define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr))
566#define IW_EV_QUAL_LEN (IW_EV_LCP_LEN + sizeof(struct iw_quality))
567#define IW_EV_POINT_OFF (((char *) &(((struct iw_point *) NULL)->length)) -   (char *) NULL)
568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
569#define IW_EV_POINT_LEN (IW_EV_LCP_LEN + sizeof(struct iw_point) -   IW_EV_POINT_OFF)
570#define IW_EV_LCP_PK_LEN (4)
571#define IW_EV_CHAR_PK_LEN (IW_EV_LCP_PK_LEN + IFNAMSIZ)
572#define IW_EV_UINT_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(__u32))
573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
574#define IW_EV_FREQ_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct iw_freq))
575#define IW_EV_PARAM_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct iw_param))
576#define IW_EV_ADDR_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct sockaddr))
577#define IW_EV_QUAL_PK_LEN (IW_EV_LCP_PK_LEN + sizeof(struct iw_quality))
578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
579#define IW_EV_POINT_PK_LEN (IW_EV_LCP_PK_LEN + 4)
580#endif
581