Browse Source

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 <j@w1.fi>
Jouni Malinen 13 years ago
parent
commit
527a398866
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/drivers/linux_wext.h

+ 8 - 0
src/drivers/linux_wext.h

@@ -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 */