]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
ath9k: Don't read NF when chip has gone through full sleep mode
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Thu, 17 Sep 2009 03:56:44 +0000 (09:26 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Sep 2009 15:35:52 +0000 (11:35 -0400)
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>
drivers/net/wireless/ath/ath9k/hw.c

index 4731ad2d999698dda32022e62f26433501a797ac..2c904c6e2099b36a76b3c2401dc60c89d3e4f85f 100644 (file)
@@ -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 &&