All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Hansen <x@jeffhansen.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 4/4] mac80211: Fix typos in "set default QoS values according to spec"
Date: Wed, 27 May 2009 12:48:30 +0000	[thread overview]
Message-ID: <1243428510-14931-4-git-send-email-x@jeffhansen.com> (raw)
In-Reply-To: <1243428510-14931-1-git-send-email-x@jeffhansen.com>

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.

Signed-off-by: Jeff Hansen <x@jeffhansen.com>
---
 net/mac80211/util.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 949d857..31284c9 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -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;
-- 
1.6.0.4

WARNING: multiple messages have this Message-ID (diff)
From: Jeff Hansen <x@jeffhansen.com>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: "Luis R. Rodriguez" <lrodriguez@atheros.com>,
	Jouni Malinen <jouni.malinen@atheros.com>,
	Vasanthakumar Thiagarajan <vasanth@atheros.com>,
	ath9k-devel@lists.ath9k.org, linux-wireless@vger.kernel.org,
	Jeff Hansen <x@jeffhansen.com>
Subject: [PATCH 4/4] mac80211: Fix typos in "set default QoS values according to spec"
Date: Wed, 27 May 2009 12:48:30 +0000	[thread overview]
Message-ID: <1243428510-14931-4-git-send-email-x@jeffhansen.com> (raw)
In-Reply-To: <1243428510-14931-1-git-send-email-x@jeffhansen.com>

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.

Signed-off-by: Jeff Hansen <x@jeffhansen.com>
---
 net/mac80211/util.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 949d857..31284c9 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -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;
-- 
1.6.0.4


  parent reply	other threads:[~2009-05-27 12:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27 12:48 [ath9k-devel] [PATCH 1/4] ath9k: Reset SC_OP_TSF_RESET flag after stuck beacon Jeff Hansen
2009-05-27 12:48 ` Jeff Hansen
2009-05-27 12:48 ` [ath9k-devel] [PATCH 2/4] ath9k: Combine legacy and 11n rc statistics Jeff Hansen
2009-05-27 12:48   ` Jeff Hansen
2009-05-27 12:48 ` [ath9k-devel] [PATCH 3/4] ath9k: Add "debug" file to debugfs Jeff Hansen
2009-05-27 12:48   ` Jeff Hansen
2009-05-27 12:48 ` Jeff Hansen [this message]
2009-05-27 12:48   ` [PATCH 4/4] mac80211: Fix typos in "set default QoS values according to spec" Jeff Hansen
  -- strict thread matches above, loose matches on Subject: below --
2009-05-27  5:05 [ath9k-devel] [PATCH 1/4] ath9k: Reset SC_OP_TSF_RESET flag after stuck beacon Jeff Hansen
2009-05-27  5:05 ` [ath9k-devel] [PATCH 4/4] mac80211: Fix typos in "set default QoS values according to spec" Jeff Hansen
2009-05-27  5:12   ` Jouni Malinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1243428510-14931-4-git-send-email-x@jeffhansen.com \
    --to=x@jeffhansen.com \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.