aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-04-15 17:39:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:33 -0400
commitd8f492b7d9a4c1cfdac69ba18a81acbd86d1dc6e (patch)
tree36e1385437b4167c7bf2fa0a5ba3f5b9f1887bb7 /drivers
parentb3950e6a52b1d0279787ef44ba1efac2f3414260 (diff)
ath9k_hw: move the cck channel 14 INI to the AR9002 hw code
This is specific to the AR9002 family only. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9002_hw.c15
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c11
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h2
3 files changed, 19 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_hw.c b/drivers/net/wireless/ath/ath9k/ar9002_hw.c
index aa52fd7b630c..ff81efa8bc00 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_hw.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_hw.c
@@ -229,6 +229,21 @@ static void ar9002_hw_init_mode_regs(struct ath_hw *ah)
229 } 229 }
230} 230}
231 231
232/* Support for Japan ch.14 (2484) spread */
233void ar9002_hw_cck_chan14_spread(struct ath_hw *ah)
234{
235 if (AR_SREV_9287_11_OR_LATER(ah)) {
236 INIT_INI_ARRAY(&ah->iniCckfirNormal,
237 ar9287Common_normal_cck_fir_coeff_92871_1,
238 ARRAY_SIZE(ar9287Common_normal_cck_fir_coeff_92871_1),
239 2);
240 INIT_INI_ARRAY(&ah->iniCckfirJapan2484,
241 ar9287Common_japan_2484_cck_fir_coeff_92871_1,
242 ARRAY_SIZE(ar9287Common_japan_2484_cck_fir_coeff_92871_1),
243 2);
244 }
245}
246
232/* 247/*
233 * Helper for ASPM support. 248 * Helper for ASPM support.
234 * 249 *
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 3157ddeab31c..40cacbfee30f 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -712,15 +712,8 @@ static int __ath9k_hw_init(struct ath_hw *ah)
712 else 712 else
713 ath9k_hw_disablepcie(ah); 713 ath9k_hw_disablepcie(ah);
714 714
715 /* Support for Japan ch.14 (2484) spread */ 715 if (!AR_SREV_9300_20_OR_LATER(ah))
716 if (AR_SREV_9287_11_OR_LATER(ah)) { 716 ar9002_hw_cck_chan14_spread(ah);
717 INIT_INI_ARRAY(&ah->iniCckfirNormal,
718 ar9287Common_normal_cck_fir_coeff_92871_1,
719 ARRAY_SIZE(ar9287Common_normal_cck_fir_coeff_92871_1), 2);
720 INIT_INI_ARRAY(&ah->iniCckfirJapan2484,
721 ar9287Common_japan_2484_cck_fir_coeff_92871_1,
722 ARRAY_SIZE(ar9287Common_japan_2484_cck_fir_coeff_92871_1), 2);
723 }
724 717
725 r = ath9k_hw_post_init(ah); 718 r = ath9k_hw_post_init(ah);
726 if (r) 719 if (r)
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 9325095da536..56c573556454 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -838,6 +838,8 @@ void ath9k_hw_htc_resetinit(struct ath_hw *ah);
838void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled, 838void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled,
839 u32 *coef_mantissa, u32 *coef_exponent); 839 u32 *coef_mantissa, u32 *coef_exponent);
840 840
841void ar9002_hw_cck_chan14_spread(struct ath_hw *ah);
842
841/* 843/*
842 * Code specifric to AR9003, we stuff these here to avoid callbacks 844 * Code specifric to AR9003, we stuff these here to avoid callbacks
843 * for older families 845 * for older families