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

ath9k: For AR9271 chipsets, set count = 0 for endless samples.

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>

authored by

Oleksij Rempel and committed by
John W. Linville
46140ddf 67dc74f1

+6 -3
+6 -3
drivers/net/wireless/ath/ath9k/ar9002_phy.c
··· 643 643 * and fix otherwise. 644 644 */ 645 645 count = param->count; 646 - if (param->endless) 647 - count = 0x80; 648 - else if (count & 0x80) 646 + if (param->endless) { 647 + if (AR_SREV_9271(ah)) 648 + count = 0; 649 + else 650 + count = 0x80; 651 + } else if (count & 0x80) 649 652 count = 0x7f; 650 653 651 654 REG_RMW_FIELD(ah, AR_PHY_SPECTRAL_SCAN,