]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ath9k_hw: fix a small typo in the noisefloor calibration debug code
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jul 2010 02:12:19 +0000 (04:12 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Jul 2010 19:32:42 +0000 (15:32 -0400)
In the noisefloor array, the extension channel values start at index 3

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

index 7f4c55f90e74e30a3573f9d89c34d0599689a8ff..07372462a8ea4fce9e7739f61de1c238aea9b265 100644 (file)
@@ -278,7 +278,7 @@ static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf)
 
                ath_print(common, ATH_DBG_CALIBRATE,
                          "NF calibrated [%s] [chain %d] is %d\n",
-                         (i > 3 ? "ext" : "ctl"), i % 3, nf[i]);
+                         (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]);
 
                if (nf[i] > limit->max) {
                        ath_print(common, ATH_DBG_CALIBRATE,