From: Marcel Holtmann Date: Mon, 4 May 2009 08:48:46 +0000 (-0700) Subject: add basic support for parsing WMM information element X-Git-Tag: v0.9.14~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ff0c93ad7c73c16892dd261612a71255fdbf978;p=thirdparty%2Fiw.git add basic support for parsing WMM information element --- diff --git a/scan.c b/scan.c index 8cd1f90..6ff4386 100644 --- a/scan.c +++ b/scan.c @@ -157,6 +157,28 @@ static void tab_on_first(bool *first) *first = false; } +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