From: Oleksij Rempel Date: Thu, 6 Nov 2014 07:53:31 +0000 (+0100) Subject: ath9k: For AR9271 chipsets, set count = 0 for endless samples. X-Git-Tag: v3.19-rc1~118^2~134^2~44 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=46140ddf169703ef0538bf00098233b24b2269e8;p=~emulex%2Finfiniband.git ath9k: For AR9271 chipsets, set count = 0 for endless samples. not sure why. Initially provided by Ashish Patro Signed-off-by: Oleksij Rempel 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 9a2afa2c690..fc08162b582 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_phy.c @@ -643,9 +643,12 @@ static void ar9002_hw_spectral_scan_config(struct ath_hw *ah, * and fix otherwise. */ count = param->count; - if (param->endless) - count = 0x80; - else if (count & 0x80) + if (param->endless) { + if (AR_SREV_9271(ah)) + count = 0; + else + count = 0x80; + } else if (count & 0x80) count = 0x7f; REG_RMW_FIELD(ah, AR_PHY_SPECTRAL_SCAN,