From: Sujith Manoharan Date: Tue, 16 Jul 2013 06:33:20 +0000 (+0530) Subject: ath9k: Use correct channel when switching bands X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f35c0fae9162b867d6cd035490fe4831151301d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ath9k: Use correct channel when switching bands Signed-off-by: Sujith Manoharan Signed-off-by: John W. Linville --- 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");