ath5k: fix scanning in AR2424
authorPavel Roskin <proski@gnu.org>
Fri, 27 Mar 2009 21:47:27 +0000 (17:47 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:07:50 +0000 (14:07 -0400)
AR5K_PHY_PLL_40MHZ_5413 should not be ORed with AR5K_PHY_MODE_RAD_RF5112
for 5 GHz channels.

The incorrect PLL value breaks scanning in the countries where 5 GHz
channels are allowed.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/reset.c

index 7a17d31b2fd9f762a2bd8870639e7e0ed8b3723c..faede828c8ffdb9c04a874dd136c2aeddd4712ed 100644 (file)
@@ -359,7 +359,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
                        mode |= AR5K_PHY_MODE_FREQ_5GHZ;
 
                        if (ah->ah_radio == AR5K_RF5413)
-                               clock |= AR5K_PHY_PLL_40MHZ_5413;
+                               clock = AR5K_PHY_PLL_40MHZ_5413;
                        else
                                clock |= AR5K_PHY_PLL_40MHZ;