--- scan.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/scan.c b/scan.c index 1f7ed07..5caa504 100644 --- a/scan.c +++ b/scan.c @@ -277,6 +277,28 @@ static void print_wifi_wpa(unsigned char type, unsigned char len, unsigned char print_wpa("WPA", vendor_oui, len, data); } +static void print_wifi_wmm(unsigned char type, unsigned char len, unsigned char *data) +{ + int i; + + printf("\tWMM "); + switch (data[0]) { + case 0x00: + printf("information:"); + break; + case 0x01: + printf("parameter:"); + break; + default: + printf("type %d:", data[0]); + break; + } + + for(i=0; i<len-1; i++) + printf(" %.02x", data[i + 1]); + printf("\n"); +} + static void print_wifi_wps(unsigned char type, unsigned char len, unsigned char *data) { bool first = true; @@ -359,6 +381,7 @@ static void print_wifi_wps(unsigned char type, unsigned char len, unsigned char static const printfn wifiprinters[] = { [1] = print_wifi_wpa, + [2] = print_wifi_wmm, [4] = print_wifi_wps, }; -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html