aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2013-07-16 02:33:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-07-22 16:54:42 -0400
commit5f35c0fae9162b867d6cd035490fe4831151301d (patch)
treecc87388fc29afabaa3fa75f7d9ee48f65313809c
parentb840cffedee3a19b8c90becc4b999e6bf4f28cb0 (diff)
ath9k: Use correct channel when switching bands
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 0208eee91c5b..04f3a3b1724c 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1526,7 +1526,8 @@ static bool ath9k_hw_channel_change(struct ath_hw *ah,
1526 ath9k_hw_mark_phy_inactive(ah); 1526 ath9k_hw_mark_phy_inactive(ah);
1527 udelay(5); 1527 udelay(5);
1528 1528
1529 ath9k_hw_init_pll(ah, NULL); 1529 if (band_switch)
1530 ath9k_hw_init_pll(ah, chan);
1530 1531
1531 if (ath9k_hw_fast_chan_change(ah, chan, &ini_reloaded)) { 1532 if (ath9k_hw_fast_chan_change(ah, chan, &ini_reloaded)) {
1532 ath_err(common, "Failed to do fast channel change\n"); 1533 ath_err(common, "Failed to do fast channel change\n");