Skip to contentSkip to conversation

iw: fix ampdu spacing & max amsdu length reporting

PATCH In review Christian Lamparter 2 participants 2 messages Jun 26, 2010 – Jul 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw: fix ampdu spacing & max amsdu length reporting

---

scan.c +1 -1
index 09b1047..cd58290 100644
@@ -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
index 0c6d978..80d5402 100644
@@ -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
#1 lore raw

I know Johannes is on vacation, so just a reminder :)

Quoted 35 lines · Christian Lamparter

---

scan.c +1 -1
index 09b1047..cd58290 100644
@@ -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
index 0c6d978..80d5402 100644
@@ -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