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 _LINUX_WIRELESS_H 20 #define _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 20 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_IS_SET(cmd) (!((cmd) & 0x1)) 97 #define IW_IS_GET(cmd) ((cmd) & 0x1) 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #define IWEVTXDROP 0x8C00 100 #define IWEVQUAL 0x8C01 101 #define IWEVCUSTOM 0x8C02 102 #define IWEVREGISTERED 0x8C03 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define IWEVEXPIRED 0x8C04 105 #define IWEVGENIE 0x8C05 106 #define IWEVMICHAELMICFAILURE 0x8C06 107 #define IWEVASSOCREQIE 0x8C07 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 #define IWEVASSOCRESPIE 0x8C08 110 #define IWEVPMKIDCAND 0x8C09 111 #define IWEVFIRST 0x8C00 112 #define IW_EVENT_IDX(cmd) ((cmd) - IWEVFIRST) 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 #define IW_PRIV_TYPE_MASK 0x7000 115 #define IW_PRIV_TYPE_NONE 0x0000 116 #define IW_PRIV_TYPE_BYTE 0x1000 117 #define IW_PRIV_TYPE_CHAR 0x2000 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 #define IW_PRIV_TYPE_INT 0x4000 120 #define IW_PRIV_TYPE_FLOAT 0x5000 121 #define IW_PRIV_TYPE_ADDR 0x6000 122 #define IW_PRIV_SIZE_FIXED 0x0800 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 #define IW_PRIV_SIZE_MASK 0x07FF 125 #define IW_MAX_FREQUENCIES 32 126 #define IW_MAX_BITRATES 32 127 #define IW_MAX_TXPOWER 8 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 #define IW_MAX_SPY 8 130 #define IW_MAX_AP 64 131 #define IW_ESSID_MAX_SIZE 32 132 #define IW_MODE_AUTO 0 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 #define IW_MODE_ADHOC 1 135 #define IW_MODE_INFRA 2 136 #define IW_MODE_MASTER 3 137 #define IW_MODE_REPEAT 4 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 #define IW_MODE_SECOND 5 140 #define IW_MODE_MONITOR 6 141 #define IW_QUAL_QUAL_UPDATED 0x01 142 #define IW_QUAL_LEVEL_UPDATED 0x02 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 #define IW_QUAL_NOISE_UPDATED 0x04 145 #define IW_QUAL_ALL_UPDATED 0x07 146 #define IW_QUAL_DBM 0x08 147 #define IW_QUAL_QUAL_INVALID 0x10 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 #define IW_QUAL_LEVEL_INVALID 0x20 150 #define IW_QUAL_NOISE_INVALID 0x40 151 #define IW_QUAL_ALL_INVALID 0x70 152 #define IW_FREQ_AUTO 0x00 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 #define IW_FREQ_FIXED 0x01 155 #define IW_MAX_ENCODING_SIZES 8 156 #define IW_ENCODING_TOKEN_MAX 64 157 #define IW_ENCODE_INDEX 0x00FF 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 #define IW_ENCODE_FLAGS 0xFF00 160 #define IW_ENCODE_MODE 0xF000 161 #define IW_ENCODE_DISABLED 0x8000 162 #define IW_ENCODE_ENABLED 0x0000 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 #define IW_ENCODE_RESTRICTED 0x4000 165 #define IW_ENCODE_OPEN 0x2000 166 #define IW_ENCODE_NOKEY 0x0800 167 #define IW_ENCODE_TEMP 0x0400 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 #define IW_POWER_ON 0x0000 170 #define IW_POWER_TYPE 0xF000 171 #define IW_POWER_PERIOD 0x1000 172 #define IW_POWER_TIMEOUT 0x2000 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 #define IW_POWER_MODE 0x0F00 175 #define IW_POWER_UNICAST_R 0x0100 176 #define IW_POWER_MULTICAST_R 0x0200 177 #define IW_POWER_ALL_R 0x0300 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 #define IW_POWER_FORCE_S 0x0400 180 #define IW_POWER_REPEATER 0x0800 181 #define IW_POWER_MODIFIER 0x000F 182 #define IW_POWER_MIN 0x0001 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 #define IW_POWER_MAX 0x0002 185 #define IW_POWER_RELATIVE 0x0004 186 #define IW_TXPOW_TYPE 0x00FF 187 #define IW_TXPOW_DBM 0x0000 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 #define IW_TXPOW_MWATT 0x0001 190 #define IW_TXPOW_RELATIVE 0x0002 191 #define IW_TXPOW_RANGE 0x1000 192 #define IW_RETRY_ON 0x0000 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 #define IW_RETRY_TYPE 0xF000 195 #define IW_RETRY_LIMIT 0x1000 196 #define IW_RETRY_LIFETIME 0x2000 197 #define IW_RETRY_MODIFIER 0x000F 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 #define IW_RETRY_MIN 0x0001 200 #define IW_RETRY_MAX 0x0002 201 #define IW_RETRY_RELATIVE 0x0004 202 #define IW_SCAN_DEFAULT 0x0000 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 #define IW_SCAN_ALL_ESSID 0x0001 205 #define IW_SCAN_THIS_ESSID 0x0002 206 #define IW_SCAN_ALL_FREQ 0x0004 207 #define IW_SCAN_THIS_FREQ 0x0008 208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209 #define IW_SCAN_ALL_MODE 0x0010 210 #define IW_SCAN_THIS_MODE 0x0020 211 #define IW_SCAN_ALL_RATE 0x0040 212 #define IW_SCAN_THIS_RATE 0x0080 213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214 #define IW_SCAN_TYPE_ACTIVE 0 215 #define IW_SCAN_TYPE_PASSIVE 1 216 #define IW_SCAN_MAX_DATA 4096 217 #define IW_CUSTOM_MAX 256 218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219 #define IW_GENERIC_IE_MAX 1024 220 #define IW_MLME_DEAUTH 0 221 #define IW_MLME_DISASSOC 1 222 #define IW_AUTH_INDEX 0x0FFF 223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224 #define IW_AUTH_FLAGS 0xF000 225 #define IW_AUTH_WPA_VERSION 0 226 #define IW_AUTH_CIPHER_PAIRWISE 1 227 #define IW_AUTH_CIPHER_GROUP 2 228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229 #define IW_AUTH_KEY_MGMT 3 230 #define IW_AUTH_TKIP_COUNTERMEASURES 4 231 #define IW_AUTH_DROP_UNENCRYPTED 5 232 #define IW_AUTH_80211_AUTH_ALG 6 233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234 #define IW_AUTH_WPA_ENABLED 7 235 #define IW_AUTH_RX_UNENCRYPTED_EAPOL 8 236 #define IW_AUTH_ROAMING_CONTROL 9 237 #define IW_AUTH_PRIVACY_INVOKED 10 238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239 #define IW_AUTH_WPA_VERSION_DISABLED 0x00000001 240 #define IW_AUTH_WPA_VERSION_WPA 0x00000002 241 #define IW_AUTH_WPA_VERSION_WPA2 0x00000004 242 #define IW_AUTH_CIPHER_NONE 0x00000001 243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244 #define IW_AUTH_CIPHER_WEP40 0x00000002 245 #define IW_AUTH_CIPHER_TKIP 0x00000004 246 #define IW_AUTH_CIPHER_CCMP 0x00000008 247 #define IW_AUTH_CIPHER_WEP104 0x00000010 248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 249 #define IW_AUTH_KEY_MGMT_802_1X 1 250 #define IW_AUTH_KEY_MGMT_PSK 2 251 #define IW_AUTH_ALG_OPEN_SYSTEM 0x00000001 252 #define IW_AUTH_ALG_SHARED_KEY 0x00000002 253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 254 #define IW_AUTH_ALG_LEAP 0x00000004 255 #define IW_AUTH_ROAMING_ENABLE 0 256 #define IW_AUTH_ROAMING_DISABLE 1 257 #define IW_ENCODE_SEQ_MAX_SIZE 8 258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 259 #define IW_ENCODE_ALG_NONE 0 260 #define IW_ENCODE_ALG_WEP 1 261 #define IW_ENCODE_ALG_TKIP 2 262 #define IW_ENCODE_ALG_CCMP 3 263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 264 #define IW_ENCODE_EXT_TX_SEQ_VALID 0x00000001 265 #define IW_ENCODE_EXT_RX_SEQ_VALID 0x00000002 266 #define IW_ENCODE_EXT_GROUP_KEY 0x00000004 267 #define IW_ENCODE_EXT_SET_TX_KEY 0x00000008 268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 269 #define IW_MICFAILURE_KEY_ID 0x00000003 270 #define IW_MICFAILURE_GROUP 0x00000004 271 #define IW_MICFAILURE_PAIRWISE 0x00000008 272 #define IW_MICFAILURE_STAKEY 0x00000010 273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 274 #define IW_MICFAILURE_COUNT 0x00000060 275 #define IW_ENC_CAPA_WPA 0x00000001 276 #define IW_ENC_CAPA_WPA2 0x00000002 277 #define IW_ENC_CAPA_CIPHER_TKIP 0x00000004 278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 279 #define IW_ENC_CAPA_CIPHER_CCMP 0x00000008 280 #define IW_EVENT_CAPA_BASE(cmd) ((cmd >= SIOCIWFIRSTPRIV) ? (cmd - SIOCIWFIRSTPRIV + 0x60) : (cmd - SIOCSIWCOMMIT)) 281 #define IW_EVENT_CAPA_INDEX(cmd) (IW_EVENT_CAPA_BASE(cmd) >> 5) 282 #define IW_EVENT_CAPA_MASK(cmd) (1 << (IW_EVENT_CAPA_BASE(cmd) & 0x1F)) 283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 284 #define IW_EVENT_CAPA_K_0 (IW_EVENT_CAPA_MASK(0x8B04) | IW_EVENT_CAPA_MASK(0x8B06) | IW_EVENT_CAPA_MASK(0x8B1A)) 285 #define IW_EVENT_CAPA_K_1 (IW_EVENT_CAPA_MASK(0x8B2A)) 286 #define IW_EVENT_CAPA_SET(event_capa, cmd) (event_capa[IW_EVENT_CAPA_INDEX(cmd)] |= IW_EVENT_CAPA_MASK(cmd)) 287 #define IW_EVENT_CAPA_SET_KERNEL(event_capa) {event_capa[0] |= IW_EVENT_CAPA_K_0; event_capa[1] |= IW_EVENT_CAPA_K_1; } 288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 289 struct iw_param 290 { 291 __s32 value; 292 __u8 fixed; 293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294 __u8 disabled; 295 __u16 flags; 296 }; 297 struct iw_point 298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 299 { 300 void __user *pointer; 301 __u16 length; 302 __u16 flags; 303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 304 }; 305 struct iw_freq 306 { 307 __s32 m; 308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 309 __s16 e; 310 __u8 i; 311 __u8 flags; 312 }; 313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 314 struct iw_quality 315 { 316 __u8 qual; 317 __u8 level; 318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 319 __u8 noise; 320 __u8 updated; 321 }; 322 struct iw_discarded 323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 324 { 325 __u32 nwid; 326 __u32 code; 327 __u32 fragment; 328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 329 __u32 retries; 330 __u32 misc; 331 }; 332 struct iw_missed 333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 334 { 335 __u32 beacon; 336 }; 337 struct iw_thrspy 338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 339 { 340 struct sockaddr addr; 341 struct iw_quality qual; 342 struct iw_quality low; 343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344 struct iw_quality high; 345 }; 346 struct iw_scan_req 347 { 348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 349 __u8 scan_type; 350 __u8 essid_len; 351 __u8 num_channels; 352 __u8 flags; 353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 354 struct sockaddr bssid; 355 __u8 essid[IW_ESSID_MAX_SIZE]; 356 __u32 min_channel_time; 357 __u32 max_channel_time; 358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 359 struct iw_freq channel_list[IW_MAX_FREQUENCIES]; 360 }; 361 struct iw_encode_ext 362 { 363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 364 __u32 ext_flags; 365 __u8 tx_seq[IW_ENCODE_SEQ_MAX_SIZE]; 366 __u8 rx_seq[IW_ENCODE_SEQ_MAX_SIZE]; 367 struct sockaddr addr; 368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 369 __u16 alg; 370 __u16 key_len; 371 __u8 key[0]; 372 }; 373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 374 struct iw_mlme 375 { 376 __u16 cmd; 377 __u16 reason_code; 378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 379 struct sockaddr addr; 380 }; 381 #define IW_PMKSA_ADD 1 382 #define IW_PMKSA_REMOVE 2 383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 384 #define IW_PMKSA_FLUSH 3 385 #define IW_PMKID_LEN 16 386 struct iw_pmksa 387 { 388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 389 __u32 cmd; 390 struct sockaddr bssid; 391 __u8 pmkid[IW_PMKID_LEN]; 392 }; 393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394 struct iw_michaelmicfailure 395 { 396 __u32 flags; 397 struct sockaddr src_addr; 398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 399 __u8 tsc[IW_ENCODE_SEQ_MAX_SIZE]; 400 }; 401 #define IW_PMKID_CAND_PREAUTH 0x00000001 402 struct iw_pmkid_cand 403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 404 { 405 __u32 flags; 406 __u32 index; 407 struct sockaddr bssid; 408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 409 }; 410 struct iw_statistics 411 { 412 __u16 status; 413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 414 struct iw_quality qual; 415 struct iw_discarded discard; 416 struct iw_missed miss; 417 }; 418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 419 union iwreq_data 420 { 421 char name[IFNAMSIZ]; 422 struct iw_point essid; 423 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 424 struct iw_param nwid; 425 struct iw_freq freq; 426 struct iw_param sens; 427 struct iw_param bitrate; 428 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 429 struct iw_param txpower; 430 struct iw_param rts; 431 struct iw_param frag; 432 __u32 mode; 433 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 434 struct iw_param retry; 435 struct iw_point encoding; 436 struct iw_param power; 437 struct iw_quality qual; 438 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 439 struct sockaddr ap_addr; 440 struct sockaddr addr; 441 struct iw_param param; 442 struct iw_point data; 443 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 444 }; 445 struct iwreq 446 { 447 union 448 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 449 { 450 char ifrn_name[IFNAMSIZ]; 451 } ifr_ifrn; 452 union iwreq_data u; 453 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 454 }; 455 struct iw_range 456 { 457 __u32 throughput; 458 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 459 __u32 min_nwid; 460 __u32 max_nwid; 461 __u16 old_num_channels; 462 __u8 old_num_frequency; 463 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 464 __u32 event_capa[6]; 465 __s32 sensitivity; 466 struct iw_quality max_qual; 467 struct iw_quality avg_qual; 468 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 469 __u8 num_bitrates; 470 __s32 bitrate[IW_MAX_BITRATES]; 471 __s32 min_rts; 472 __s32 max_rts; 473 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 474 __s32 min_frag; 475 __s32 max_frag; 476 __s32 min_pmp; 477 __s32 max_pmp; 478 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 479 __s32 min_pmt; 480 __s32 max_pmt; 481 __u16 pmp_flags; 482 __u16 pmt_flags; 483 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 484 __u16 pm_capa; 485 __u16 encoding_size[IW_MAX_ENCODING_SIZES]; 486 __u8 num_encoding_sizes; 487 __u8 max_encoding_tokens; 488 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 489 __u8 encoding_login_index; 490 __u16 txpower_capa; 491 __u8 num_txpower; 492 __s32 txpower[IW_MAX_TXPOWER]; 493 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 494 __u8 we_version_compiled; 495 __u8 we_version_source; 496 __u16 retry_capa; 497 __u16 retry_flags; 498 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 499 __u16 r_time_flags; 500 __s32 min_retry; 501 __s32 max_retry; 502 __s32 min_r_time; 503 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 504 __s32 max_r_time; 505 __u16 num_channels; 506 __u8 num_frequency; 507 struct iw_freq freq[IW_MAX_FREQUENCIES]; 508 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 509 __u32 enc_capa; 510 }; 511 struct iw_priv_args 512 { 513 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 514 __u32 cmd; 515 __u16 set_args; 516 __u16 get_args; 517 char name[IFNAMSIZ]; 518 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 519 }; 520 struct iw_event 521 { 522 __u16 len; 523 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 524 __u16 cmd; 525 union iwreq_data u; 526 }; 527 #define IW_EV_LCP_LEN (sizeof(struct iw_event) - sizeof(union iwreq_data)) 528 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 529 #define IW_EV_CHAR_LEN (IW_EV_LCP_LEN + IFNAMSIZ) 530 #define IW_EV_UINT_LEN (IW_EV_LCP_LEN + sizeof(__u32)) 531 #define IW_EV_FREQ_LEN (IW_EV_LCP_LEN + sizeof(struct iw_freq)) 532 #define IW_EV_PARAM_LEN (IW_EV_LCP_LEN + sizeof(struct iw_param)) 533 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 534 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr)) 535 #define IW_EV_QUAL_LEN (IW_EV_LCP_LEN + sizeof(struct iw_quality)) 536 #define IW_EV_POINT_OFF (((char *) &(((struct iw_point *) NULL)->length)) - (char *) NULL) 537 #define IW_EV_POINT_LEN (IW_EV_LCP_LEN + sizeof(struct iw_point) - IW_EV_POINT_OFF) 538 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 539 #endif 540