mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 17:47:38 +07:00
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>
This commit is contained in:
parent
67dc74f15f
commit
46140ddf16
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user