From: Simon Wunderlich Date: Thu, 10 Jan 2013 10:45:14 +0000 (+0100) Subject: ath9k: fix spectral scan endless mode on AR9002 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=aad12ede97d62b290ac03f0077d05b999bbddd05;p=openwrt%2Fstaging%2Fblogic.git ath9k: fix spectral scan endless mode on AR9002 There was a copy+paste error in ar9002 for the endless spectral mode, fix that. Signed-off-by: Simon Wunderlich Signed-off-by: Mathias Kretschmer Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/ar9002_phy.c b/drivers/net/wireless/ath/ath9k/ar9002_phy.c index 51b7c8130ae4..2cb665e2ea22 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_phy.c @@ -581,7 +581,7 @@ void ar9002_hw_spectral_scan_config(struct ath_hw *ah, */ count = param->count; if (param->endless) - count = 0; + count = 0x80; else if (count & 0x80) count = 0x7f;