]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wext: Define some new values if linux/wireless.h is too old
authorJouni Malinen <j@w1.fi>
Tue, 15 Nov 2011 18:10:23 +0000 (20:10 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 25 Nov 2011 21:56:15 +0000 (23:56 +0200)
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 <j@w1.fi>

src/drivers/linux_wext.h

index b2e45fa01b454d0deb77f980564694463499e833..b6eea68613d652c4640c9863b9317c117b77de80 100644 (file)
@@ -40,4 +40,12 @@ typedef __uint8_t __u8;
 
 #include <linux/wireless.h>
 
+#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 */