ath9k: Fix XLNA bias strength
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 26 Nov 2013 01:51:39 +0000 (07:21 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 18:11:51 +0000 (13:11 -0500)
The EEPROM parameter to determine whether the bias
strength values for XLNA have to be applied is part
of the miscConfiguration field and not featureEnable.

Cc: stable@vger.kernel.org
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

index d96e879..130657d 100644 (file)
@@ -4037,7 +4037,7 @@ static void ar9003_hw_xlna_bias_strength_apply(struct ath_hw *ah, bool is2ghz)
        struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep;
        u8 bias;
 
-       if (!(eep->baseEepHeader.featureEnable & 0x40))
+       if (!(eep->baseEepHeader.miscConfiguration & 0x40))
                return;
 
        if (!AR_SREV_9300(ah))