Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ba10a8e authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

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: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1bb56333
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -657,15 +657,15 @@ 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;