ath9k_hw: fix a sign error in the IQ calibration code
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Jul 2010 10:48:40 +0000 (12:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jul 2010 20:05:38 +0000 (16:05 -0400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_calib.c

index 5fdbb53b47e06bd7fc5031a5aaf5b0a01ad27047..dabafb874c36ad7da8f62a99fd69b64d45af8dc1 100644 (file)
@@ -239,7 +239,7 @@ static void ar9002_hw_iqcalibrate(struct ath_hw *ah, u8 numChains)
                        if (qCoff > 15)
                                qCoff = 15;
                        else if (qCoff <= -16)
-                               qCoff = 16;
+                               qCoff = -16;
 
                        ath_print(common, ATH_DBG_CALIBRATE,
                                  "Chn %d : iCoff = 0x%x  qCoff = 0x%x\n",