Skip to contentSkip to conversation

wifi-debugfs: Fix AMSDU rate printout.

PATCH Superseded [email protected] 2 participants 2 messages Nov 17, 2011 mac80211

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi-debugfs: Fix AMSDU rate printout.

From: Ben Greear <[email protected]>

It was flipped. See section 7.3.2.56 of the 802.11n spec for details.

---
:100644 100644 c5f3417... 3110cbd... M net/mac80211/debugfs_sta.c

 net/mac80211/debugfs_sta.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/mac80211/debugfs_sta.c +2 -2
index c5f3417..3110cbd 100644
@@ -274,9 +274,9 @@ static ssize_t sta_ht_capa_read(struct file *file, char __user *userbuf,
 
 		PRINT_HT_CAP((htc->cap & BIT(10)), "HT Delayed Block Ack");
 
-		PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: "
-			     "3839 bytes");
 		PRINT_HT_CAP(!(htc->cap & BIT(11)), "Max AMSDU length: "
+			     "3839 bytes");
+		PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: "
 			     "7935 bytes");
 
 		/*
Signature · 1 line
1.7.3.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · On Thu, 2011-11-17 at 13:48 -0800, [email protected] wrote:

From: Ben Greear <[email protected]>

It was flipped. See section 7.3.2.56 of the 802.11n spec for details.

but the subject should be "mac80211: fix AMSDU rate output in debugfs" or so, maybe John can fix it up.

Quoted 22 lines

---
:100644 100644 c5f3417... 3110cbd... M net/mac80211/debugfs_sta.c

 net/mac80211/debugfs_sta.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/mac80211/debugfs_sta.c +2 -2
index c5f3417..3110cbd 100644
@@ -274,9 +274,9 @@ static ssize_t sta_ht_capa_read(struct file *file, char __user *userbuf,
 
 		PRINT_HT_CAP((htc->cap & BIT(10)), "HT Delayed Block Ack");
 
-		PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: "
-			     "3839 bytes");
 		PRINT_HT_CAP(!(htc->cap & BIT(11)), "Max AMSDU length: "
+			     "3839 bytes");
+		PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: "
 			     "7935 bytes");
 
 		/*