Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b611cb6 authored by Pavel Roskin's avatar Pavel Roskin Committed by John W. Linville
Browse files

ath5k: fix scanning in AR2424



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: default avatarPavel Roskin <proski@gnu.org>
Acked-by: default avatarNick Kossifidis <mickflemm@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent bc8a5397
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -359,7 +359,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
			mode |= AR5K_PHY_MODE_FREQ_5GHZ;
			mode |= AR5K_PHY_MODE_FREQ_5GHZ;


			if (ah->ah_radio == AR5K_RF5413)
			if (ah->ah_radio == AR5K_RF5413)
				clock |= AR5K_PHY_PLL_40MHZ_5413;
				clock = AR5K_PHY_PLL_40MHZ_5413;
			else
			else
				clock |= AR5K_PHY_PLL_40MHZ;
				clock |= AR5K_PHY_PLL_40MHZ;