Skip to content

Commit

Permalink
ath9k: Don't read NF when chip has gone through full sleep mode
Browse files Browse the repository at this point in the history
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: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Vasanthakumar Thiagarajan authored and John W. Linville committed Sep 23, 2009
1 parent 204d794 commit 9ebef79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
return -EIO;

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

if (bChannelChange &&
Expand Down

0 comments on commit 9ebef79

Please sign in to comment.