aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2013-07-16 02:33:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-07-22 16:54:43 -0400
commit70e89a71c83b1937f1662429b255cf21e51aecea (patch)
treed9b526ca898fcbe62f0eb0aa956a5e063cb28023 /drivers/net/wireless/ath/ath9k/hw.c
parent07a9bd205575cee4907089c17e41da2c5cb1af2e (diff)
ath9k: Release the RF bus after setting board values
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 04f3a3b1724c..d55d97c85964 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1498,7 +1498,7 @@ static bool ath9k_hw_channel_change(struct ath_hw *ah,
1498 struct ath_common *common = ath9k_hw_common(ah); 1498 struct ath_common *common = ath9k_hw_common(ah);
1499 struct ath9k_hw_capabilities *pCap = &ah->caps; 1499 struct ath9k_hw_capabilities *pCap = &ah->caps;
1500 bool band_switch = false, mode_diff = false; 1500 bool band_switch = false, mode_diff = false;
1501 u8 ini_reloaded; 1501 u8 ini_reloaded = 0;
1502 u32 qnum; 1502 u32 qnum;
1503 int r; 1503 int r;
1504 1504
@@ -1544,22 +1544,21 @@ static bool ath9k_hw_channel_change(struct ath_hw *ah,
1544 } 1544 }
1545 ath9k_hw_set_clockrate(ah); 1545 ath9k_hw_set_clockrate(ah);
1546 ath9k_hw_apply_txpower(ah, chan, false); 1546 ath9k_hw_apply_txpower(ah, chan, false);
1547 ath9k_hw_rfbus_done(ah);
1548 1547
1549 if (IS_CHAN_OFDM(chan) || IS_CHAN_HT(chan)) 1548 if (IS_CHAN_OFDM(chan) || IS_CHAN_HT(chan))
1550 ath9k_hw_set_delta_slope(ah, chan); 1549 ath9k_hw_set_delta_slope(ah, chan);
1551 1550
1552 ath9k_hw_spur_mitigate_freq(ah, chan); 1551 ath9k_hw_spur_mitigate_freq(ah, chan);
1553 1552
1554 if (band_switch || mode_diff) { 1553 if (band_switch || ini_reloaded)
1555 ah->ah_flags |= AH_FASTCC; 1554 ah->eep_ops->set_board_values(ah, chan);
1556 if (band_switch || ini_reloaded)
1557 ah->eep_ops->set_board_values(ah, chan);
1558 1555
1559 ath9k_hw_init_bb(ah, chan); 1556 ath9k_hw_init_bb(ah, chan);
1557 ath9k_hw_rfbus_done(ah);
1560 1558
1561 if (band_switch || ini_reloaded) 1559 if (band_switch || ini_reloaded) {
1562 ath9k_hw_init_cal(ah, chan); 1560 ah->ah_flags |= AH_FASTCC;
1561 ath9k_hw_init_cal(ah, chan);
1563 ah->ah_flags &= ~AH_FASTCC; 1562 ah->ah_flags &= ~AH_FASTCC;
1564 } 1563 }
1565 1564