]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
print WPS version as major.minor
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 4 May 2009 11:07:16 +0000 (13:07 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Mon, 4 May 2009 11:07:16 +0000 (13:07 +0200)
scan.c

diff --git a/scan.c b/scan.c
index f8c0fc9c7ee2edcf60b5cbf3bfbbb748ee58d749..6ca5f3a29afbde874289d99bce545e502251854f 100644 (file)
--- 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);