ath9k: Use correct channel when switching bands
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 16 Jul 2013 06:33:20 +0000 (12:03 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:42 +0000 (16:54 -0400)
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c

index 0208eee..04f3a3b 100644 (file)
@@ -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");