diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2008-11-13 07:29:36 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-25 16:41:29 -0500 |
commit | f9bbf431beb7dd98b94fa965dab851432be4b762 (patch) | |
tree | 91250e60538735bcd2e8768ea4351db8f7de52d8 /drivers/net/wireless | |
parent | 9f8042021792f8c0e0a7f5b81f326bfab86cda83 (diff) |
ath9k: incorrect noise floor threshold values.
This patch fixes incorrect noise floor threshold values.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath9k/calib.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/eeprom.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/calib.c b/drivers/net/wireless/ath9k/calib.c index 1690759fe7b8..0e214f746a96 100644 --- a/drivers/net/wireless/ath9k/calib.c +++ b/drivers/net/wireless/ath9k/calib.c | |||
@@ -176,14 +176,14 @@ static bool getNoiseFloorThresh(struct ath_hal *ah, | |||
176 | case CHANNEL_A_HT20: | 176 | case CHANNEL_A_HT20: |
177 | case CHANNEL_A_HT40PLUS: | 177 | case CHANNEL_A_HT40PLUS: |
178 | case CHANNEL_A_HT40MINUS: | 178 | case CHANNEL_A_HT40MINUS: |
179 | *nft = (int16_t)ath9k_hw_get_eeprom(ah, EEP_NFTHRESH_5); | 179 | *nft = (int8_t)ath9k_hw_get_eeprom(ah, EEP_NFTHRESH_5); |
180 | break; | 180 | break; |
181 | case CHANNEL_B: | 181 | case CHANNEL_B: |
182 | case CHANNEL_G: | 182 | case CHANNEL_G: |
183 | case CHANNEL_G_HT20: | 183 | case CHANNEL_G_HT20: |
184 | case CHANNEL_G_HT40PLUS: | 184 | case CHANNEL_G_HT40PLUS: |
185 | case CHANNEL_G_HT40MINUS: | 185 | case CHANNEL_G_HT40MINUS: |
186 | *nft = (int16_t)ath9k_hw_get_eeprom(ah, EEP_NFTHRESH_2); | 186 | *nft = (int8_t)ath9k_hw_get_eeprom(ah, EEP_NFTHRESH_2); |
187 | break; | 187 | break; |
188 | default: | 188 | default: |
189 | DPRINTF(ah->ah_sc, ATH_DBG_CHANNEL, | 189 | DPRINTF(ah->ah_sc, ATH_DBG_CHANNEL, |
diff --git a/drivers/net/wireless/ath9k/eeprom.c b/drivers/net/wireless/ath9k/eeprom.c index 9b2fdc538a8d..180e54114659 100644 --- a/drivers/net/wireless/ath9k/eeprom.c +++ b/drivers/net/wireless/ath9k/eeprom.c | |||
@@ -1551,9 +1551,9 @@ u32 ath9k_hw_get_eeprom(struct ath_hal *ah, | |||
1551 | 1551 | ||
1552 | switch (param) { | 1552 | switch (param) { |
1553 | case EEP_NFTHRESH_5: | 1553 | case EEP_NFTHRESH_5: |
1554 | return -pModal[0].noiseFloorThreshCh[0]; | 1554 | return pModal[0].noiseFloorThreshCh[0]; |
1555 | case EEP_NFTHRESH_2: | 1555 | case EEP_NFTHRESH_2: |
1556 | return -pModal[1].noiseFloorThreshCh[0]; | 1556 | return pModal[1].noiseFloorThreshCh[0]; |
1557 | case AR_EEPROM_MAC(0): | 1557 | case AR_EEPROM_MAC(0): |
1558 | return pBase->macAddr[0] << 8 | pBase->macAddr[1]; | 1558 | return pBase->macAddr[0] << 8 | pBase->macAddr[1]; |
1559 | case AR_EEPROM_MAC(1): | 1559 | case AR_EEPROM_MAC(1): |