diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 40b6e841594..7bb700151ca 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #define ATH9K_CLOCK_RATE_CCK 22 | 25 | #define ATH9K_CLOCK_RATE_CCK 22 |
26 | #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 | 26 | #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 |
27 | #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 | 27 | #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 |
28 | #define ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM 44 | ||
28 | 29 | ||
29 | static bool ath9k_hw_set_reset_reg(struct ath_hw *ah, u32 type); | 30 | static bool ath9k_hw_set_reset_reg(struct ath_hw *ah, u32 type); |
30 | 31 | ||
@@ -90,7 +91,11 @@ static u32 ath9k_hw_mac_clks(struct ath_hw *ah, u32 usecs) | |||
90 | return usecs *ATH9K_CLOCK_RATE_CCK; | 91 | return usecs *ATH9K_CLOCK_RATE_CCK; |
91 | if (conf->channel->band == IEEE80211_BAND_2GHZ) | 92 | if (conf->channel->band == IEEE80211_BAND_2GHZ) |
92 | return usecs *ATH9K_CLOCK_RATE_2GHZ_OFDM; | 93 | return usecs *ATH9K_CLOCK_RATE_2GHZ_OFDM; |
93 | return usecs *ATH9K_CLOCK_RATE_5GHZ_OFDM; | 94 | |
95 | if (ah->caps.hw_caps & ATH9K_HW_CAP_FASTCLOCK) | ||
96 | return usecs * ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM; | ||
97 | else | ||
98 | return usecs * ATH9K_CLOCK_RATE_5GHZ_OFDM; | ||
94 | } | 99 | } |
95 | 100 | ||
96 | static u32 ath9k_hw_mac_to_clks(struct ath_hw *ah, u32 usecs) | 101 | static u32 ath9k_hw_mac_to_clks(struct ath_hw *ah, u32 usecs) |
@@ -2188,7 +2193,8 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah) | |||
2188 | } | 2193 | } |
2189 | 2194 | ||
2190 | if (AR_SREV_9300_20_OR_LATER(ah)) { | 2195 | if (AR_SREV_9300_20_OR_LATER(ah)) { |
2191 | pCap->hw_caps |= ATH9K_HW_CAP_EDMA | ATH9K_HW_CAP_LDPC; | 2196 | pCap->hw_caps |= ATH9K_HW_CAP_EDMA | ATH9K_HW_CAP_LDPC | |
2197 | ATH9K_HW_CAP_FASTCLOCK; | ||
2192 | pCap->rx_hp_qdepth = ATH9K_HW_RX_HP_QDEPTH; | 2198 | pCap->rx_hp_qdepth = ATH9K_HW_RX_HP_QDEPTH; |
2193 | pCap->rx_lp_qdepth = ATH9K_HW_RX_LP_QDEPTH; | 2199 | pCap->rx_lp_qdepth = ATH9K_HW_RX_LP_QDEPTH; |
2194 | pCap->rx_status_len = sizeof(struct ar9003_rxs); | 2200 | pCap->rx_status_len = sizeof(struct ar9003_rxs); |