Skip to contentSkip to conversation

mac80211: Fix typos in "set default QoS values according to spec"

PATCH New Jeff Hansen 1 participant 1 message May 27, 2009 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 mac80211: Fix typos in "set default QoS values according to spec"

Some of the acwmin and acwmax values were backwards in the original patch, which cut TX performance (on my device at least) down from ~25-30Mbps to 2Mbps. Performance is back up after this commit.

---
 net/mac80211/util.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
net/mac80211/util.c +6 -6
index 949d857..d096528 100644
@@ -657,20 +657,20 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata)
 
 		switch (queue) {
 		case 3: /* AC_BK */
-			qparam.cw_max = aCWmin;
-			qparam.cw_min = aCWmax;
+			qparam.cw_max = aCWmax;
+			qparam.cw_min = aCWmin;
 			qparam.txop = 0;
 			qparam.aifs = 7;
 			break;
 		default: /* never happens but let's not leave undefined */
 		case 2: /* AC_BE */
-			qparam.cw_max = aCWmin;
-			qparam.cw_min = aCWmax;
+			qparam.cw_max = aCWmax;
+			qparam.cw_min = aCWmin;
 			qparam.txop = 0;
 			qparam.aifs = 3;
 			break;
 		case 1: /* AC_VI */
-			qparam.cw_max = aCWmin;
+			qparam.cw_max = aCWmax;
 			qparam.cw_min = (aCWmin + 1) / 2 - 1;
 			if (use_11b)
 				qparam.txop = 6016/32;
@@ -679,7 +679,7 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata)
 			qparam.aifs = 2;
 			break;
 		case 0: /* AC_VO */
-			qparam.cw_max = (aCWmin + 1) / 2 - 1;
+			qparam.cw_max = (aCWmax + 1) / 2 - 1;
 			qparam.cw_min = (aCWmin + 1) / 4 - 1;
 			if (use_11b)
 				qparam.txop = 3264/32;
Signature · 1 line
1.6.0.4