linux_wext.h revision 1f69aa52ea2e0a73ac502565df8c666ee49cab6a
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> 30typedef __uint32_t __u32; 31typedef __int32_t __s32; 32typedef __uint16_t __u16; 33typedef __int16_t __s16; 34typedef __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 */ 52