From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: stable@kernel.org
Cc: linville@tuxdriver.com, mb@bu3sch.de,
ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org,
Bob Copeland <me@bobcopeland.com>
Subject: [PATCH 1/2] ath5k: dont use external sleep clock in AP mode
Date: Thu, 11 Mar 2010 18:23:48 -0500 [thread overview]
Message-ID: <1268349829-3195-2-git-send-email-lrodriguez@atheros.com> (raw)
In-Reply-To: <1268349829-3195-1-git-send-email-lrodriguez@atheros.com>
From: Bob Copeland <me@bobcopeland.com>
When using the external sleep clock in AP mode, the
TSF increments too quickly, causing beacon interval
to be much lower than it is supposed to be, resulting
in lots of beacon-not-ready interrupts.
This fixes http://bugzilla.kernel.org/show_bug.cgi?id=14802.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
drivers/net/wireless/ath/ath5k/reset.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 34e13c7..257ea18 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -1382,8 +1382,9 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
* Set clocks to 32KHz operation and use an
* external 32KHz crystal when sleeping if one
* exists */
- if (ah->ah_version == AR5K_AR5212)
- ath5k_hw_set_sleep_clock(ah, true);
+ if (ah->ah_version == AR5K_AR5212 &&
+ ah->ah_op_mode != NL80211_IFTYPE_AP)
+ ath5k_hw_set_sleep_clock(ah, true);
/*
* Disable beacons and reset the register
--
1.6.3.3
next prev parent reply other threads:[~2010-03-11 23:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-11 23:23 [PATCH 0/2] ath5k: few AP fixes for 2.6.32 Luis R. Rodriguez
2010-03-11 23:23 ` Luis R. Rodriguez [this message]
2010-03-11 23:23 ` [PATCH 2/2] ath5k: fix setup for CAB queue Luis R. Rodriguez
2010-03-13 12:52 ` [PATCH 0/2] ath5k: few AP fixes for 2.6.32 Jon Fairbairn
2010-03-18 21:24 ` [stable] " Greg KH
2010-03-18 21:44 ` Luis R. Rodriguez
-- strict thread matches above, loose matches on Subject: below --
2010-01-21 4:51 [PATCH 0/2] ath5k AP mode fixes Bob Copeland
2010-01-21 4:51 ` [PATCH 1/2] ath5k: dont use external sleep clock in AP mode Bob Copeland
2010-01-21 11:29 ` Nick Kossifidis
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=1268349829-3195-2-git-send-email-lrodriguez@atheros.com \
--to=lrodriguez@atheros.com \
--cc=ath5k-devel@lists.ath5k.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mb@bu3sch.de \
--cc=me@bobcopeland.com \
--cc=stable@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox