From: Johannes Berg Date: Tue, 5 May 2009 08:45:30 +0000 (+0200) Subject: use decimal like the standard for suites below OUI X-Git-Tag: v0.9.14~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=510e0e2faa8947de1bc97fea541d0182afeac0b7;p=thirdparty%2Fiw.git use decimal like the standard for suites below OUI --- diff --git a/scan.c b/scan.c index 7c654d7..c46e7ac 100644 --- a/scan.c +++ b/scan.c @@ -198,19 +198,19 @@ static void print_cipher(const uint8_t *data) { if (memcmp(data, wifi_oui, 3) == 0) { switch (data[3]) { - case 0x00: + case 0: printf("Use group cipher suite"); break; - case 0x01: + case 1: printf("WEP-40"); break; - case 0x02: + case 2: printf("TKIP"); break; - case 0x04: + case 4: printf("CCMP"); break; - case 0x05: + case 5: printf("WEP-104"); break; default: @@ -220,22 +220,22 @@ static void print_cipher(const uint8_t *data) } } else if (memcmp(data, ieee80211_oui, 3) == 0) { switch (data[3]) { - case 0x00: + case 0: printf("Use group cipher suite"); break; - case 0x01: + case 1: printf("WEP-40"); break; - case 0x02: + case 2: printf("TKIP"); break; - case 0x04: + case 4: printf("CCMP"); break; - case 0x05: + case 5: printf("WEP-104"); break; - case 0x06: + case 6: printf("AES-128-CMAC"); break; default: @@ -252,10 +252,10 @@ static void print_auth(const uint8_t *data) { if (memcmp(data, wifi_oui, 3) == 0) { switch (data[3]) { - case 0x01: + case 1: printf("IEEE 802.1X"); break; - case 0x02: + case 2: printf("PSK"); break; default: @@ -265,10 +265,10 @@ static void print_auth(const uint8_t *data) } } else if (memcmp(data, ieee80211_oui, 3) == 0) { switch (data[3]) { - case 0x01: + case 1: printf("IEEE 802.1X"); break; - case 0x02: + case 2: printf("PSK"); break; default: