aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-04-26 15:04:30 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-27 16:09:16 -0400
commit14bc110463bafc1aa4a51d4443e9dc1a88b58c40 (patch)
treed06287aac5fd2d35393d2aee58581bd04b668b5e /drivers
parent2fcb91317360d75efa3cbf4b200c9e7131c6b527 (diff)
ath9k_hw: fix pll clock setting for 5ghz on AR9003
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_phy.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
index 137543b2d73..bf8ec687f9e 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
@@ -375,16 +375,7 @@ static u32 ar9003_hw_compute_pll_control(struct ath_hw *ah,
375 else if (chan && IS_CHAN_QUARTER_RATE(chan)) 375 else if (chan && IS_CHAN_QUARTER_RATE(chan))
376 pll |= SM(0x2, AR_RTC_9300_PLL_CLKSEL); 376 pll |= SM(0x2, AR_RTC_9300_PLL_CLKSEL);
377 377
378 if (chan && IS_CHAN_5GHZ(chan)) { 378 pll |= SM(0x2c, AR_RTC_9300_PLL_DIV);
379 pll |= SM(0x28, AR_RTC_9300_PLL_DIV);
380
381 /*
382 * When doing fast clock, set PLL to 0x142c
383 */
384 if (IS_CHAN_A_5MHZ_SPACED(chan))
385 pll = 0x142c;
386 } else
387 pll |= SM(0x2c, AR_RTC_9300_PLL_DIV);
388 379
389 return pll; 380 return pll;
390} 381}