aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2010-01-20 23:51:03 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-22 16:11:29 -0500
commit5d6ce628f986d1a3c523cbb0a5a52095c48cc332 (patch)
tree618a9a14c80ead594a0d923e0db06ad6aeddaacc /drivers/net/wireless/ath
parentd0dd2de0d055f0ffb1e2ecdc21380de9d12a85e2 (diff)
ath5k: dont use external sleep clock in AP mode
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>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath5k/reset.c5
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 6690923fd78c..a35a7db0fc4c 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -1374,8 +1374,9 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1374 * Set clocks to 32KHz operation and use an 1374 * Set clocks to 32KHz operation and use an
1375 * external 32KHz crystal when sleeping if one 1375 * external 32KHz crystal when sleeping if one
1376 * exists */ 1376 * exists */
1377 if (ah->ah_version == AR5K_AR5212) 1377 if (ah->ah_version == AR5K_AR5212 &&
1378 ath5k_hw_set_sleep_clock(ah, true); 1378 ah->ah_op_mode != NL80211_IFTYPE_AP)
1379 ath5k_hw_set_sleep_clock(ah, true);
1379 1380
1380 /* 1381 /*
1381 * Disable beacons and reset the register 1382 * Disable beacons and reset the register