iw: fix ampdu spacing & max amsdu length reporting
PATCH 1/1 iw: fix ampdu spacing & max amsdu length reporting
Signed-off-by Christian Lamparter <[email protected]>
---
scan.c +1 -1
@@ -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 ); }
util.c +2 -2
@@ -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
I know Johannes is on vacation, so just a reminder :)
Quoted 35 lines · Christian Lamparter
Signed-off-by Christian Lamparter <[email protected]>---
scan.c +1
-1@@ -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); }util.c +2
-3@@ -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 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html