From a2fbde09c7971dbfc19214de3b0424ec60b358c5 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Mon, 14 Jun 2010 20:17:36 -0400 Subject: [PATCH] --- yaml --- r: 203071 b: refs/heads/master c: 9a2af8892a74573cec4bea2149843a93442a12de h: refs/heads/master i: 203069: 1cdeda45fcd46416fd7d393e280ce3559b13a4ca 203067: 893f87205d44fd4112b5caf44cb55b39297a7d64 203063: b71afa7ef015e1bee44c52b62123beea402b1a52 203055: 9007dcc27a132f601791e6e2bbdb954be0f09933 203039: 33197617c90cbf747d55fc2e196ca1984c5d362f 203007: e8902f6aa99801c79457852fc3bfaec87fb74df0 v: v3 --- [refs] | 2 +- trunk/drivers/net/wireless/ath/ath9k/mac.c | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index a7ecdee16424..a1a8168d7809 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e4a0ab3487d847ce8044a2d49f82391ea7d6489e +refs/heads/master: 9a2af8892a74573cec4bea2149843a93442a12de diff --git a/trunk/drivers/net/wireless/ath/ath9k/mac.c b/trunk/drivers/net/wireless/ath/ath9k/mac.c index 1550591ed417..e955bb9d98cb 100644 --- a/trunk/drivers/net/wireless/ath/ath9k/mac.c +++ b/trunk/drivers/net/wireless/ath/ath9k/mac.c @@ -555,8 +555,13 @@ bool ath9k_hw_resettxqueue(struct ath_hw *ah, u32 q) REGWRITE_BUFFER_FLUSH(ah); DISABLE_REGWRITE_BUFFER(ah); - /* cwmin and cwmax should be 0 for beacon queue */ - if (AR_SREV_9300_20_OR_LATER(ah)) { + /* + * cwmin and cwmax should be 0 for beacon queue + * but not for IBSS as we would create an imbalance + * on beaconing fairness for participating nodes. + */ + if (AR_SREV_9300_20_OR_LATER(ah) && + ah->opmode != NL80211_IFTYPE_ADHOC) { REG_WRITE(ah, AR_DLCL_IFS(q), SM(0, AR_D_LCL_IFS_CWMIN) | SM(0, AR_D_LCL_IFS_CWMAX) | SM(qi->tqi_aifs, AR_D_LCL_IFS_AIFS));