Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Driver interaction with generic Linux Wireless Extensions |
| 3 | * Copyright (c) 2003-2011, Jouni Malinen <j@w1.fi> |
| 4 | * |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame] | 5 | * This software may be distributed under the terms of the BSD license. |
| 6 | * See README for more details. |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef LINUX_WEXT_H |
| 10 | #define LINUX_WEXT_H |
| 11 | |
| 12 | #ifndef ANDROID |
| 13 | |
| 14 | /* |
| 15 | * Avoid including other kernel header to avoid conflicts with C library |
| 16 | * headers. |
| 17 | */ |
| 18 | #define _LINUX_TYPES_H |
| 19 | #define _LINUX_SOCKET_H |
| 20 | #define _LINUX_IF_H |
| 21 | |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 22 | #include <stdint.h> |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 23 | #include <net/if.h> |
Dmitry Shmidt | fb45fd5 | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 24 | typedef uint32_t __u32; |
| 25 | typedef int32_t __s32; |
| 26 | typedef uint16_t __u16; |
| 27 | typedef int16_t __s16; |
| 28 | typedef uint8_t __u8; |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 29 | #ifndef __user |
| 30 | #define __user |
| 31 | #endif /* __user */ |
| 32 | |
| 33 | #endif /* ANDROID */ |
| 34 | |
| 35 | #include <linux/wireless.h> |
| 36 | |
| 37 | #ifndef IW_ENCODE_ALG_PMK |
| 38 | #define IW_ENCODE_ALG_PMK 4 |
| 39 | #endif |
| 40 | |
| 41 | #ifndef IW_ENC_CAPA_4WAY_HANDSHAKE |
| 42 | #define IW_ENC_CAPA_4WAY_HANDSHAKE 0x00000010 |
| 43 | #endif |
| 44 | |
| 45 | #endif /* LINUX_WEXT_H */ |