]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ath9k: Fix bug in determining calibration support
authorSujith <Sujith.Manoharan@atheros.com>
Mon, 13 Apr 2009 16:26:43 +0000 (21:56 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:50:12 +0000 (16:50 -0700)
commit a451aa66dcb14efcb7addf1d8edcac8df76a97b6 upstream.

ADC gain calibration has to be done for all non 2GHZ-HT20 channels.
Regression from "ath9k: use ieee80211_conf on ath9k_hw_iscal_supported()"

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath9k/calib.c

index b588ccd41a111f0a3c4b4db8b5554b0b554399b0..163aa554eaee2cc3222ad93f8405fa1bafc80919 100644 (file)
@@ -284,8 +284,8 @@ static bool ath9k_hw_iscal_supported(struct ath_hw *ah,
                return true;
        case ADC_GAIN_CAL:
        case ADC_DC_CAL:
-               if (conf->channel->band == IEEE80211_BAND_5GHZ &&
-                 conf_is_ht20(conf))
+               if (!(conf->channel->band == IEEE80211_BAND_2GHZ &&
+                     conf_is_ht20(conf)))
                        return true;
                break;
        }