GENIE bit definition ?

Jouni Malinen j
Tue May 1 18:33:36 PDT 2007


On Tue, May 01, 2007 at 10:29:38AM -0700, Jean Tourrilhes wrote:

> 	I just had report that the parsing of GENIE in wireless tools
> is wrong. I'm trying to make sense of what those bits should be, and
> would like a little bit of help...
> 
> 	This is the raw IE value from the scan result :
> DD:1C:00:50:F2:01:01:00:00:50:F2:02:02:00:00:50:F2:04:00:50:F2:02:01:00:00:50:F2:02:00:00

> 	These are various definitions available in wireless.h :

These have nothing to do with values in IEs.

> 	These are extra definitions found in wpa_supplicant :
> ------------------------------------
> #define WPA_CIPHER_NONE BIT(0)
> #define WPA_CIPHER_WEP40 BIT(1)
> #define WPA_CIPHER_WEP104 BIT(2)
> #define WPA_CIPHER_TKIP BIT(3)
> #define WPA_CIPHER_CCMP BIT(4)
> typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg;
> typedef enum { CIPHER_NONE, CIPHER_WEP40, CIPHER_TKIP, CIPHER_CCMP,
> 	       CIPHER_WEP104 } wpa_cipher;

Nor do these.

> static const u8 WPA_CIPHER_SUITE_NONE[] = { 0x00, 0x50, 0xf2, 0 };
> static const u8 WPA_CIPHER_SUITE_WEP40[] = { 0x00, 0x50, 0xf2, 1 };
> static const u8 WPA_CIPHER_SUITE_TKIP[] = { 0x00, 0x50, 0xf2, 2 };
> static const u8 WPA_CIPHER_SUITE_WRAP[] = { 0x00, 0x50, 0xf2, 3 };
> static const u8 WPA_CIPHER_SUITE_CCMP[] = { 0x00, 0x50, 0xf2, 4 };
> static const u8 WPA_CIPHER_SUITE_WEP104[] = { 0x00, 0x50, 0xf2, 5 };

These are the only correct values from WPA IE cipher suites (with a
small clarification that WRAP was removed before the standard was
published).

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list