ath9k: For AR9271 chipsets, set count = 0 for endless samples.
authorOleksij Rempel <linux@rempel-privat.de>
Thu, 6 Nov 2014 07:53:31 +0000 (08:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Nov 2014 21:31:14 +0000 (16:31 -0500)
not sure why.
Initially provided by Ashish Patro <patro@cs.wisc.edu>

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_phy.c

index 9a2afa2c690b761bef1e9203c60b2a3bb0e9e86f..fc08162b58200143d5324e9825cab8384b6b5118 100644 (file)
@@ -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,