diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-09 00:12:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-11 15:02:12 -0400 |
commit | 087b6ff682ff62c49c9a36ddfd24fc781367b1d1 (patch) | |
tree | 5f9c20dd265cd72d2a47d52600c3f14d1fdb9113 | |
parent | 906c720527b23ba8c99683ea5f9ea1f9d7749e8c (diff) |
ath9k_hw: fix MAC clock rate for AR9287 v1.3+
This chip uses the async FIFO feature and runs the MAC at 117 MHz
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index f69c62e36ed..d4084d89c6f 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -87,7 +87,10 @@ static void ath9k_hw_set_clockrate(struct ath_hw *ah) | |||
87 | struct ath_common *common = ath9k_hw_common(ah); | 87 | struct ath_common *common = ath9k_hw_common(ah); |
88 | unsigned int clockrate; | 88 | unsigned int clockrate; |
89 | 89 | ||
90 | if (!ah->curchan) /* should really check for CCK instead */ | 90 | /* AR9287 v1.3+ uses async FIFO and runs the MAC at 117 MHz */ |
91 | if (AR_SREV_9287(ah) && AR_SREV_9287_13_OR_LATER(ah)) | ||
92 | clockrate = 117; | ||
93 | else if (!ah->curchan) /* should really check for CCK instead */ | ||
91 | clockrate = ATH9K_CLOCK_RATE_CCK; | 94 | clockrate = ATH9K_CLOCK_RATE_CCK; |
92 | else if (conf->channel->band == IEEE80211_BAND_2GHZ) | 95 | else if (conf->channel->band == IEEE80211_BAND_2GHZ) |
93 | clockrate = ATH9K_CLOCK_RATE_2GHZ_OFDM; | 96 | clockrate = ATH9K_CLOCK_RATE_2GHZ_OFDM; |