From: Jouni Malinen Date: Tue, 15 Nov 2011 18:10:23 +0000 (+0200) Subject: wext: Define some new values if linux/wireless.h is too old X-Git-Tag: aosp-jb-start~264 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=527a3988662d64271d2a867ce977309d0ee67866;p=thirdparty%2Fhostap.git wext: Define some new values if linux/wireless.h is too old IW_ENCODE_ALG_PMK and IW_ENC_CAPA_4WAY_HANDSHAKE are not defined in the Android tree, so add compatibility defines for these. Signed-hostap: Jouni Malinen --- diff --git a/src/drivers/linux_wext.h b/src/drivers/linux_wext.h index b2e45fa01..b6eea6861 100644 --- a/src/drivers/linux_wext.h +++ b/src/drivers/linux_wext.h @@ -40,4 +40,12 @@ typedef __uint8_t __u8; #include +#ifndef IW_ENCODE_ALG_PMK +#define IW_ENCODE_ALG_PMK 4 +#endif + +#ifndef IW_ENC_CAPA_4WAY_HANDSHAKE +#define IW_ENC_CAPA_4WAY_HANDSHAKE 0x00000010 +#endif + #endif /* LINUX_WEXT_H */