Commit d8f492b7 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

ath9k_hw: move the cck channel 14 INI to the AR9002 hw code

This is specific to the AR9002 family only.
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b3950e6a
...@@ -229,6 +229,21 @@ static void ar9002_hw_init_mode_regs(struct ath_hw *ah) ...@@ -229,6 +229,21 @@ static void ar9002_hw_init_mode_regs(struct ath_hw *ah)
} }
} }
/* Support for Japan ch.14 (2484) spread */
void ar9002_hw_cck_chan14_spread(struct ath_hw *ah)
{
if (AR_SREV_9287_11_OR_LATER(ah)) {
INIT_INI_ARRAY(&ah->iniCckfirNormal,
ar9287Common_normal_cck_fir_coeff_92871_1,
ARRAY_SIZE(ar9287Common_normal_cck_fir_coeff_92871_1),
2);
INIT_INI_ARRAY(&ah->iniCckfirJapan2484,
ar9287Common_japan_2484_cck_fir_coeff_92871_1,
ARRAY_SIZE(ar9287Common_japan_2484_cck_fir_coeff_92871_1),
2);
}
}
/* /*
* Helper for ASPM support. * Helper for ASPM support.
* *
......
...@@ -712,15 +712,8 @@ static int __ath9k_hw_init(struct ath_hw *ah) ...@@ -712,15 +712,8 @@ static int __ath9k_hw_init(struct ath_hw *ah)
else else
ath9k_hw_disablepcie(ah); ath9k_hw_disablepcie(ah);
/* Support for Japan ch.14 (2484) spread */ if (!AR_SREV_9300_20_OR_LATER(ah))
if (AR_SREV_9287_11_OR_LATER(ah)) { ar9002_hw_cck_chan14_spread(ah);
INIT_INI_ARRAY(&ah->iniCckfirNormal,
ar9287Common_normal_cck_fir_coeff_92871_1,
ARRAY_SIZE(ar9287Common_normal_cck_fir_coeff_92871_1), 2);
INIT_INI_ARRAY(&ah->iniCckfirJapan2484,
ar9287Common_japan_2484_cck_fir_coeff_92871_1,
ARRAY_SIZE(ar9287Common_japan_2484_cck_fir_coeff_92871_1), 2);
}
r = ath9k_hw_post_init(ah); r = ath9k_hw_post_init(ah);
if (r) if (r)
......
...@@ -838,6 +838,8 @@ void ath9k_hw_htc_resetinit(struct ath_hw *ah); ...@@ -838,6 +838,8 @@ void ath9k_hw_htc_resetinit(struct ath_hw *ah);
void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled, void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled,
u32 *coef_mantissa, u32 *coef_exponent); u32 *coef_mantissa, u32 *coef_exponent);
void ar9002_hw_cck_chan14_spread(struct ath_hw *ah);
/* /*
* Code specifric to AR9003, we stuff these here to avoid callbacks * Code specifric to AR9003, we stuff these here to avoid callbacks
* for older families * for older families
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment