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

Commit 9ebef799 authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by John W. Linville
Browse files

ath9k: Don't read NF when chip has gone through full sleep mode



NF value may be incorrect when we read it just after the chip
has gone through a full sleep mode. Reading incorrect NF values
affects RX throughput.

Signed-off-by: default avatarVasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 204d7940
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2357,7 +2357,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
	if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
	if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
		return -EIO;
		return -EIO;


	if (curchan)
	if (curchan && !ah->chip_fullsleep)
		ath9k_hw_getnf(ah, curchan);
		ath9k_hw_getnf(ah, curchan);


	if (bChannelChange &&
	if (bChannelChange &&