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