diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-14 11:40:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-15 13:45:06 -0400 |
commit | c8664d13a58f7cccc673c0840efcc698f7872172 (patch) | |
tree | 048f571513be4d623922b32be9de5c3fbe332e0e /drivers/net/wireless | |
parent | bbf2b30c0ee0860ab10af856f7d8570c8652d9fd (diff) |
ath9k_hw: fold ar9002_hw_cck_chan14_spread into mode regs initialization
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9002_hw.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 |
3 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_hw.c b/drivers/net/wireless/ath/ath9k/ar9002_hw.c index 2829c8c75e86..1d06dab27030 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_hw.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_hw.c | |||
@@ -154,11 +154,6 @@ static void ar9002_hw_init_mode_regs(struct ath_hw *ah) | |||
154 | INI_RA(addac, 31,1) = 0; | 154 | INI_RA(addac, 31,1) = 0; |
155 | } | 155 | } |
156 | } | 156 | } |
157 | } | ||
158 | |||
159 | /* Support for Japan ch.14 (2484) spread */ | ||
160 | void ar9002_hw_cck_chan14_spread(struct ath_hw *ah) | ||
161 | { | ||
162 | if (AR_SREV_9287_11_OR_LATER(ah)) { | 157 | if (AR_SREV_9287_11_OR_LATER(ah)) { |
163 | INIT_INI_ARRAY(&ah->iniCckfirNormal, | 158 | INIT_INI_ARRAY(&ah->iniCckfirNormal, |
164 | ar9287Common_normal_cck_fir_coeff_9287_1_1, | 159 | ar9287Common_normal_cck_fir_coeff_9287_1_1, |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index ce9577ebaf2b..3022c4e4d103 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -620,9 +620,6 @@ static int __ath9k_hw_init(struct ath_hw *ah) | |||
620 | if (!ah->is_pciexpress) | 620 | if (!ah->is_pciexpress) |
621 | ath9k_hw_disablepcie(ah); | 621 | ath9k_hw_disablepcie(ah); |
622 | 622 | ||
623 | if (!AR_SREV_9300_20_OR_LATER(ah)) | ||
624 | ar9002_hw_cck_chan14_spread(ah); | ||
625 | |||
626 | r = ath9k_hw_post_init(ah); | 623 | r = ath9k_hw_post_init(ah); |
627 | if (r) | 624 | if (r) |
628 | return r; | 625 | return r; |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 043df3cf54fe..4bd2c89654d4 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -994,7 +994,6 @@ void ath9k_hw_apply_txpower(struct ath_hw *ah, struct ath9k_channel *chan); | |||
994 | * Code Specific to AR5008, AR9001 or AR9002, | 994 | * Code Specific to AR5008, AR9001 or AR9002, |
995 | * we stuff these here to avoid callbacks for AR9003. | 995 | * we stuff these here to avoid callbacks for AR9003. |
996 | */ | 996 | */ |
997 | void ar9002_hw_cck_chan14_spread(struct ath_hw *ah); | ||
998 | int ar9002_hw_rf_claim(struct ath_hw *ah); | 997 | int ar9002_hw_rf_claim(struct ath_hw *ah); |
999 | void ar9002_hw_enable_async_fifo(struct ath_hw *ah); | 998 | void ar9002_hw_enable_async_fifo(struct ath_hw *ah); |
1000 | 999 | ||