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 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * Alternatively, this software may be distributed under the terms of BSD |
| 10 | * license. |
| 11 | * |
| 12 | * See README and COPYING for more details. |
| 13 | */ |
| 14 | |
| 15 | #ifndef LINUX_WEXT_H |
| 16 | #define LINUX_WEXT_H |
| 17 | |
| 18 | #ifndef ANDROID |
| 19 | |
| 20 | /* |
| 21 | * Avoid including other kernel header to avoid conflicts with C library |
| 22 | * headers. |
| 23 | */ |
| 24 | #define _LINUX_TYPES_H |
| 25 | #define _LINUX_SOCKET_H |
| 26 | #define _LINUX_IF_H |
| 27 | |
| 28 | #include <sys/types.h> |
| 29 | #include <net/if.h> |
| 30 | typedef __uint32_t __u32; |
| 31 | typedef __int32_t __s32; |
| 32 | typedef __uint16_t __u16; |
| 33 | typedef __int16_t __s16; |
| 34 | typedef __uint8_t __u8; |
| 35 | #ifndef __user |
| 36 | #define __user |
| 37 | #endif /* __user */ |
| 38 | |
| 39 | #endif /* ANDROID */ |
| 40 | |
| 41 | #include <linux/wireless.h> |
| 42 | |
| 43 | #ifndef IW_ENCODE_ALG_PMK |
| 44 | #define IW_ENCODE_ALG_PMK 4 |
| 45 | #endif |
| 46 | |
| 47 | #ifndef IW_ENC_CAPA_4WAY_HANDSHAKE |
| 48 | #define IW_ENC_CAPA_4WAY_HANDSHAKE 0x00000010 |
| 49 | #endif |
| 50 | |
| 51 | #endif /* LINUX_WEXT_H */ |