From: Marcel Holtmann Date: Mon, 4 May 2009 08:48:43 +0000 (-0700) Subject: add basic support for parsing country information element X-Git-Tag: v0.9.14~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7e8fa37d03cb17e69cdcf37041ffdc299c693df;p=thirdparty%2Fiw.git add basic support for parsing country information element --- diff --git a/scan.c b/scan.c index d4a4832..5b5d300 100644 --- a/scan.c +++ b/scan.c @@ -80,6 +80,25 @@ static void print_ign(unsigned char type, unsigned char len, unsigned char *data /* ignore for now, not too useful */ } +static void print_country(unsigned char type, unsigned char len, unsigned char *data) +{ + int i; + + printf("\tCountry: %.*s", 2, data); + switch (data[2]) { + case 'I': + printf(" (indoor)"); + break; + case 'O': + printf(" (outdoor)"); + break; + } + printf(", data:"); + for(i=0; i