提交 8efa7a81 编写于 作者: F Felix Fietkau 提交者: John W. Linville

ath9k_hw: remove ath9k_hw_htc_resetinit

Automatically set the ah->htc_reset_init on init and after PHY disable.
Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 ce8fdf6e
...@@ -919,7 +919,6 @@ static int ath9k_htc_start(struct ieee80211_hw *hw) ...@@ -919,7 +919,6 @@ static int ath9k_htc_start(struct ieee80211_hw *hw)
/* setup initial channel */ /* setup initial channel */
init_channel = ath9k_cmn_get_curchannel(hw, ah); init_channel = ath9k_cmn_get_curchannel(hw, ah);
ath9k_hw_htc_resetinit(ah);
ret = ath9k_hw_reset(ah, init_channel, ah->caldata, false); ret = ath9k_hw_reset(ah, init_channel, ah->caldata, false);
if (ret) { if (ret) {
ath_err(common, ath_err(common,
......
...@@ -449,6 +449,7 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah) ...@@ -449,6 +449,7 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
ah->slottime = ATH9K_SLOT_TIME_9; ah->slottime = ATH9K_SLOT_TIME_9;
ah->globaltxtimeout = (u32) -1; ah->globaltxtimeout = (u32) -1;
ah->power_mode = ATH9K_PM_UNDEFINED; ah->power_mode = ATH9K_PM_UNDEFINED;
ah->htc_reset_init = true;
} }
static int ath9k_hw_init_macaddr(struct ath_hw *ah) static int ath9k_hw_init_macaddr(struct ath_hw *ah)
...@@ -2631,6 +2632,7 @@ bool ath9k_hw_phy_disable(struct ath_hw *ah) ...@@ -2631,6 +2632,7 @@ bool ath9k_hw_phy_disable(struct ath_hw *ah)
return false; return false;
ath9k_hw_init_pll(ah, NULL); ath9k_hw_init_pll(ah, NULL);
ah->htc_reset_init = true;
return true; return true;
} }
EXPORT_SYMBOL(ath9k_hw_phy_disable); EXPORT_SYMBOL(ath9k_hw_phy_disable);
...@@ -2991,12 +2993,6 @@ EXPORT_SYMBOL(ath_gen_timer_isr); ...@@ -2991,12 +2993,6 @@ EXPORT_SYMBOL(ath_gen_timer_isr);
/* HTC */ /* HTC */
/********/ /********/
void ath9k_hw_htc_resetinit(struct ath_hw *ah)
{
ah->htc_reset_init = true;
}
EXPORT_SYMBOL(ath9k_hw_htc_resetinit);
static struct { static struct {
u32 version; u32 version;
const char * name; const char * name;
......
...@@ -988,9 +988,6 @@ void ath_gen_timer_isr(struct ath_hw *hw); ...@@ -988,9 +988,6 @@ void ath_gen_timer_isr(struct ath_hw *hw);
void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len); void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len);
/* HTC */
void ath9k_hw_htc_resetinit(struct ath_hw *ah);
/* PHY */ /* PHY */
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册