]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ath9k_hw: Increase the wait count for nf load.
authorVivek Natarajan <vnatarajan@atheros.com>
Thu, 10 Mar 2011 05:35:43 +0000 (11:05 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Mar 2011 19:15:36 +0000 (14:15 -0500)
Increasing the wait count makes the nf load pass in
most of the cases.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/calib.c

index b4a92a4313f6f8fdda2a6afc91057c0201a2909d..8649581fa4ddcf0fb79384ee8a2a30333a9516bc 100644 (file)
@@ -262,7 +262,7 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
         * since 250us often results in NF load timeout and causes deaf
         * condition during stress testing 12/12/2009
         */
-       for (j = 0; j < 1000; j++) {
+       for (j = 0; j < 10000; j++) {
                if ((REG_READ(ah, AR_PHY_AGC_CONTROL) &
                     AR_PHY_AGC_CONTROL_NF) == 0)
                        break;
@@ -278,7 +278,7 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
         * here, the baseband nf cal will just be capped by our present
         * noisefloor until the next calibration timer.
         */
-       if (j == 1000) {
+       if (j == 10000) {
                ath_dbg(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));