aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k
diff options
context:
space:
mode:
authorNick Kossifidis <mick@madwifi.org>2008-12-22 05:35:55 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:46 -0500
commiteaee7cc2c180c291084a1c1f49cd2bf13002b3e1 (patch)
treeeedbdc2de0f4f04d83581aec5e1002787ab2c9d1 /drivers/net/wireless/ath5k
parentb306b82c58069159791df5a377a1f1f49b42c4d3 (diff)
ath5k: More EEPROM code updates
* Don't scale power values on RF5111 EEPROMs because they get out of bounds (power is u8, so multiplying power by 50 is too much and there is no reason to do so -we don't do it on other chips anyway-). HAL does it as a technique to handle 0.5 dbm steps but i believe it's not the right thing to do and certainly not the right place to do it. We 'll work this out on interpolation code for all chips (0.5 or 0.25 steps etc) in a generic way. Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k')
-rw-r--r--drivers/net/wireless/ath5k/eeprom.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath5k/eeprom.c b/drivers/net/wireless/ath5k/eeprom.c
index 079e9ca168d5..b4ec539c464b 100644
--- a/drivers/net/wireless/ath5k/eeprom.c
+++ b/drivers/net/wireless/ath5k/eeprom.c
@@ -665,7 +665,7 @@ ath5k_eeprom_read_pcal_info_5111(struct ath5k_hw *ah, int mode)
665 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; 665 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
666 struct ath5k_chan_pcal_info *pcal; 666 struct ath5k_chan_pcal_info *pcal;
667 int offset, ret; 667 int offset, ret;
668 int i, j; 668 int i;
669 u16 val; 669 u16 val;
670 670
671 offset = AR5K_EEPROM_GROUPS_START(ee->ee_version); 671 offset = AR5K_EEPROM_GROUPS_START(ee->ee_version);
@@ -745,11 +745,6 @@ ath5k_eeprom_read_pcal_info_5111(struct ath5k_hw *ah, int mode)
745 745
746 ath5k_get_pcdac_intercepts(ah, cdata->pcdac_min, 746 ath5k_get_pcdac_intercepts(ah, cdata->pcdac_min,
747 cdata->pcdac_max, cdata->pcdac); 747 cdata->pcdac_max, cdata->pcdac);
748
749 for (j = 0; j < AR5K_EEPROM_N_PCDAC; j++) {
750 cdata->pwr[j] = (u16)
751 (AR5K_EEPROM_POWER_STEP * cdata->pwr[j]);
752 }
753 } 748 }
754 749
755 return 0; 750 return 0;