]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: fix wifi wmm ie print function
authorYoni Divinsky <yoni.divinsky@ti.com>
Wed, 16 Nov 2011 12:55:11 +0000 (14:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Nov 2011 14:40:58 +0000 (15:40 +0100)
When printing the acm bit of the wifi wmm ie, the incorrect bit
was being printed.

Signed-off-by: Yoni Divinsky <yoni.divinsky@ti.com>
scan.c

diff --git a/scan.c b/scan.c
index 86551b38db13215f0141b8923d6892355f801ed2..688dd506c110a565fc3b4fcce13b1e4b11cc7490 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -707,7 +707,7 @@ static bool print_wifi_wmm_param(const uint8_t *data, uint8_t len)
 
        for (i = 0; i < 4; i++) {
                printf("\n\t\t * %s:", aci_tbl[(data[0] >> 5) & 3]);
-               if (data[4] & 0x10)
+               if (data[0] & 0x10)
                        printf(" acm");
                printf(" CW %d-%d", (1 << (data[1] & 0xf)) - 1,
                                    (1 << (data[1] >> 4)) - 1);