]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: fix ampdu spacing & max amsdu length reporting
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 26 Jun 2010 22:51:23 +0000 (00:51 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 30 Jun 2010 05:34:03 +0000 (07:34 +0200)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
scan.c
util.c

diff --git a/scan.c b/scan.c
index 09b10478839df7034310a8fed4f0756c41da4085..cd58290e789a098fc163846211261a993ec44421 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -497,7 +497,7 @@ static void print_ht_capa(const uint8_t type, uint8_t len, const uint8_t *data)
        printf("\n");
        print_ht_capability(data[0] | (data[1] << 8));
        print_ampdu_length(data[2] & 3);
-       print_ampdu_spacing((data[2] >> 2) & 3);
+       print_ampdu_spacing((data[2] >> 2) & 7);
        print_ht_mcs(data + 3);
 }
 
diff --git a/util.c b/util.c
index 0c6d978c323a350874b1a44733d2aab9515c6561..80d5402e97274ce5e59b77011b9d5cdd31b8dd9c 100644 (file)
--- a/util.c
+++ b/util.c
@@ -457,8 +457,8 @@ void print_ht_capability(__u16 cap)
 
        PRINT_HT_CAP((cap & BIT(10)), "HT Delayed Block Ack");
 
-       PRINT_HT_CAP((cap & BIT(11)), "Max AMSDU length: 3839 bytes");
-        PRINT_HT_CAP(!(cap & BIT(11)), "Max AMSDU length: 7935 bytes");
+       PRINT_HT_CAP(!(cap & BIT(11)), "Max AMSDU length: 3839 bytes");
+       PRINT_HT_CAP((cap & BIT(11)), "Max AMSDU length: 7935 bytes");
 
        /*
         * For beacons and probe response this would mean the BSS