From: Johannes Berg Date: Mon, 4 May 2009 11:07:16 +0000 (+0200) Subject: print WPS version as major.minor X-Git-Tag: v0.9.14~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dffc6750fec6d97a4fc55a687836cd6437be76e2;p=thirdparty%2Fiw.git print WPS version as major.minor --- diff --git a/scan.c b/scan.c index f8c0fc9..6ca5f3a 100644 --- a/scan.c +++ b/scan.c @@ -380,7 +380,7 @@ static void print_wifi_wps(unsigned char type, unsigned char len, unsigned char switch (subtype) { case 0x104a: tab_on_first(&first); - printf("\t * Version: %#.2x\n", data[4]); + printf("\t * Version: %d.%d\n", data[4] >> 4, data[4] & 0xF); break; case 0x1011: tab_on_first(&first);