ath9k_hw: fix noisefloor timeout handling on AR9003
authorFelix Fietkau <nbd@openwrt.org>
Mon, 26 Apr 2010 19:04:40 +0000 (15:04 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Apr 2010 20:09:20 +0000 (16:09 -0400)
When the noisefloor calibration times out, do not load -50 into
the registers, since this might cause rx issues. Instead, leave
enough time for the noise floor calibration to complete until
the next check.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_phy.c

index 806f4a54b62089509258fb5a061824d0355cf5d0..80431a2f6dc1d941ef2376637a7cf32133192ff9 100644 (file)
@@ -1093,6 +1093,7 @@ static void ar9003_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
                ath_print(common, ATH_DBG_ANY, "Timeout while waiting for nf "
                          "to load: AR_PHY_AGC_CONTROL=0x%x\n",
                          REG_READ(ah, AR_PHY_AGC_CONTROL));
+               return;
        }
 
        /*