aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-14 11:40:23 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-03-15 13:43:14 -0400
commit8efa7a813233affeafd9fd7770709e9bda6855b6 (patch)
tree0c64be3e5cbed0f09bc6141b0a4f32077ee52ace /drivers/net/wireless
parentce8fdf6ef6bc2e299d2e1572c55325e0dca7e85f (diff)
ath9k_hw: remove ath9k_hw_htc_resetinit
Automatically set the ah->htc_reset_init on init and after PHY disable. 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/htc_drv_main.c1
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c8
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h3
3 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 2a29a7cdef18..2b8f61c210e1 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -919,7 +919,6 @@ static int ath9k_htc_start(struct ieee80211_hw *hw)
919 /* setup initial channel */ 919 /* setup initial channel */
920 init_channel = ath9k_cmn_get_curchannel(hw, ah); 920 init_channel = ath9k_cmn_get_curchannel(hw, ah);
921 921
922 ath9k_hw_htc_resetinit(ah);
923 ret = ath9k_hw_reset(ah, init_channel, ah->caldata, false); 922 ret = ath9k_hw_reset(ah, init_channel, ah->caldata, false);
924 if (ret) { 923 if (ret) {
925 ath_err(common, 924 ath_err(common,
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 780ecd8aff6e..d3df943ac124 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -449,6 +449,7 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
449 ah->slottime = ATH9K_SLOT_TIME_9; 449 ah->slottime = ATH9K_SLOT_TIME_9;
450 ah->globaltxtimeout = (u32) -1; 450 ah->globaltxtimeout = (u32) -1;
451 ah->power_mode = ATH9K_PM_UNDEFINED; 451 ah->power_mode = ATH9K_PM_UNDEFINED;
452 ah->htc_reset_init = true;
452} 453}
453 454
454static int ath9k_hw_init_macaddr(struct ath_hw *ah) 455static int ath9k_hw_init_macaddr(struct ath_hw *ah)
@@ -2631,6 +2632,7 @@ bool ath9k_hw_phy_disable(struct ath_hw *ah)
2631 return false; 2632 return false;
2632 2633
2633 ath9k_hw_init_pll(ah, NULL); 2634 ath9k_hw_init_pll(ah, NULL);
2635 ah->htc_reset_init = true;
2634 return true; 2636 return true;
2635} 2637}
2636EXPORT_SYMBOL(ath9k_hw_phy_disable); 2638EXPORT_SYMBOL(ath9k_hw_phy_disable);
@@ -2991,12 +2993,6 @@ EXPORT_SYMBOL(ath_gen_timer_isr);
2991/* HTC */ 2993/* HTC */
2992/********/ 2994/********/
2993 2995
2994void ath9k_hw_htc_resetinit(struct ath_hw *ah)
2995{
2996 ah->htc_reset_init = true;
2997}
2998EXPORT_SYMBOL(ath9k_hw_htc_resetinit);
2999
3000static struct { 2996static struct {
3001 u32 version; 2997 u32 version;
3002 const char * name; 2998 const char * name;
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 23c8dfae29f7..7ce60fb1d91e 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -988,9 +988,6 @@ void ath_gen_timer_isr(struct ath_hw *hw);
988 988
989void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len); 989void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len);
990 990
991/* HTC */
992void ath9k_hw_htc_resetinit(struct ath_hw *ah);
993
994/* PHY */ 991/* PHY */
995void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled, 992void ath9k_hw_get_delta_slope_vals(struct ath_hw *ah, u32 coef_scaled,
996 u32 *coef_mantissa, u32 *coef_exponent); 993 u32 *coef_mantissa, u32 *coef_exponent);