ath9k: Fix incorrect noise floor reading for 4k EEPROM
authorSujith <Sujith.Manoharan@atheros.com>
Thu, 12 Feb 2009 04:36:52 +0000 (10:06 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:51:44 +0000 (14:51 -0500)
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/eeprom.c

index 68de89d7986fc584ac90415c7c86ce202311b3e9..b6f9c31ddfcf29c3feb2ffdac7d59e62b4e7f98d 100644 (file)
@@ -439,7 +439,7 @@ static u32 ath9k_hw_4k_get_eeprom(struct ath_hw *ah,
 
        switch (param) {
        case EEP_NFTHRESH_2:
-               return pModal[1].noiseFloorThreshCh[0];
+               return pModal->noiseFloorThreshCh[0];
        case AR_EEPROM_MAC(0):
                return pBase->macAddr[0] << 8 | pBase->macAddr[1];
        case AR_EEPROM_MAC(1):