Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46140ddf authored by Oleksij Rempel's avatar Oleksij Rempel Committed by John W. Linville
Browse files

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: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 67dc74f1
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -643,9 +643,12 @@ static void ar9002_hw_spectral_scan_config(struct ath_hw *ah,
	 * and fix otherwise.
	 */
	count = param->count;
	if (param->endless)
	if (param->endless) {
		if (AR_SREV_9271(ah))
			count = 0;
		else
			count = 0x80;
	else if (count & 0x80)
	} else if (count & 0x80)
		count = 0x7f;

	REG_RMW_FIELD(ah, AR_PHY_SPECTRAL_SCAN,