Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Pavel Roskin <proski@gnu.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Pavel Roskin and committed by
John W. Linville
807e3739 295936c5

+1 -1
+1 -1
drivers/net/wireless/ath5k/reset.c
··· 358 358 mode |= AR5K_PHY_MODE_FREQ_5GHZ; 359 359 360 360 if (ah->ah_radio == AR5K_RF5413) 361 - clock |= AR5K_PHY_PLL_40MHZ_5413; 361 + clock = AR5K_PHY_PLL_40MHZ_5413; 362 362 else 363 363 clock |= AR5K_PHY_PLL_40MHZ; 364 364