Browse Source

mac80211: fix transposed min/max CW values

I accidentally transposed these in the patch that "fixed" the defaults,
leading to extremely low throughput because of the huge min CW.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Johannes Berg 16 years ago
parent
commit
7ba10a8efe
1 changed files with 4 additions and 4 deletions
  1. 4 4
      net/mac80211/util.c

+ 4 - 4
net/mac80211/util.c

@@ -657,15 +657,15 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata)
 
 
 		switch (queue) {
 		switch (queue) {
 		case 3: /* AC_BK */
 		case 3: /* AC_BK */
-			qparam.cw_max = aCWmin;
-			qparam.cw_min = aCWmax;
+			qparam.cw_max = aCWmax;
+			qparam.cw_min = aCWmin;
 			qparam.txop = 0;
 			qparam.txop = 0;
 			qparam.aifs = 7;
 			qparam.aifs = 7;
 			break;
 			break;
 		default: /* never happens but let's not leave undefined */
 		default: /* never happens but let's not leave undefined */
 		case 2: /* AC_BE */
 		case 2: /* AC_BE */
-			qparam.cw_max = aCWmin;
-			qparam.cw_min = aCWmax;
+			qparam.cw_max = aCWmax;
+			qparam.cw_min = aCWmin;
 			qparam.txop = 0;
 			qparam.txop = 0;
 			qparam.aifs = 3;
 			qparam.aifs = 3;
 			break;
 			break;