diff options
author | Bob Copeland <me@bobcopeland.com> | 2010-01-20 23:51:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-01 19:01:13 -0400 |
commit | d50ef74730f3f3d876dc9e0fe7ce22c57c4ec67d (patch) | |
tree | 26ffa32b0f1570005f793ca9e3068bffdd54509a /drivers/net/wireless/ath | |
parent | b55c7626ed9e89a5260ec43712a87495978ed519 (diff) |
ath5k: dont use external sleep clock in AP mode
commit 5d6ce628f986d1a3c523cbb0a5a52095c48cc332 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | 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 62954fc77869..dbc52ee183b2 100644 --- a/drivers/net/wireless/ath/ath5k/reset.c +++ b/drivers/net/wireless/ath/ath5k/reset.c | |||
@@ -1371,8 +1371,9 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
1371 | * Set clocks to 32KHz operation and use an | 1371 | * Set clocks to 32KHz operation and use an |
1372 | * external 32KHz crystal when sleeping if one | 1372 | * external 32KHz crystal when sleeping if one |
1373 | * exists */ | 1373 | * exists */ |
1374 | if (ah->ah_version == AR5K_AR5212) | 1374 | if (ah->ah_version == AR5K_AR5212 && |
1375 | ath5k_hw_set_sleep_clock(ah, true); | 1375 | ah->ah_op_mode != NL80211_IFTYPE_AP) |
1376 | ath5k_hw_set_sleep_clock(ah, true); | ||
1376 | 1377 | ||
1377 | /* | 1378 | /* |
1378 | * Disable beacons and reset the register | 1379 | * Disable beacons and reset the register |