summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-02-12 10:06:52 +0530
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:51:44 -0500
commit668158af481a29aae82ded6593be0a21311f3243 (patch)
tree248368d729a5d962d2f4e8272d55a4fdc5a4e053
parent0fd06c90c2a9e837da6f34383a9ca38cfa702e5b (diff)
ath9k: Fix incorrect noise floor reading for 4k EEPROM
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath9k/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.c b/drivers/net/wireless/ath9k/eeprom.c
index 68de89d7986..b6f9c31ddfc 100644
--- a/drivers/net/wireless/ath9k/eeprom.c
+++ b/drivers/net/wireless/ath9k/eeprom.c
@@ -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):