From 5f35c0fae9162b867d6cd035490fe4831151301d Mon Sep 17 00:00:00 2001 From: Sujith Manoharan Date: Tue, 16 Jul 2013 12:03:20 +0530 Subject: [PATCH] ath9k: Use correct channel when switching bands Signed-off-by: Sujith Manoharan Signed-off-by: John W. Linville --- drivers/net/wireless/ath/ath9k/hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ath9k_hw_mark_phy_inactive(ah); udelay(5); - ath9k_hw_init_pll(ah, NULL); + if (band_switch) + ath9k_hw_init_pll(ah, chan); if (ath9k_hw_fast_chan_change(ah, chan, &ini_reloaded)) { ath_err(common, "Failed to do fast channel change\n"); -- 2.30.2