mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 00:21:32 +00:00
ath5k: fix wrong max power per rate eeprom reads for 802.11a
This patch reduces the per rate target power eeprom reads for AR5K_EEPROM_MODE_11A from 10 to 8, as there are only 8 valid power curve entries on the eeprom. The former 10 reads lead to equal max power limits per rate and this causes an increasing distortion for all rates above 24 MBit and leads to a needless poor performance in 802.11a mode. Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
7dd6753f6d
commit
3a245cbef6
@ -1482,7 +1482,7 @@ ath5k_eeprom_read_target_rate_pwr_info(struct ath5k_hw *ah, unsigned int mode)
|
|||||||
case AR5K_EEPROM_MODE_11A:
|
case AR5K_EEPROM_MODE_11A:
|
||||||
offset += AR5K_EEPROM_TARGET_PWR_OFF_11A(ee->ee_version);
|
offset += AR5K_EEPROM_TARGET_PWR_OFF_11A(ee->ee_version);
|
||||||
rate_pcal_info = ee->ee_rate_tpwr_a;
|
rate_pcal_info = ee->ee_rate_tpwr_a;
|
||||||
ee->ee_rate_target_pwr_num[mode] = AR5K_EEPROM_N_5GHZ_CHAN;
|
ee->ee_rate_target_pwr_num[mode] = AR5K_EEPROM_N_5GHZ_RATE_CHAN;
|
||||||
break;
|
break;
|
||||||
case AR5K_EEPROM_MODE_11B:
|
case AR5K_EEPROM_MODE_11B:
|
||||||
offset += AR5K_EEPROM_TARGET_PWR_OFF_11B(ee->ee_version);
|
offset += AR5K_EEPROM_TARGET_PWR_OFF_11B(ee->ee_version);
|
||||||
|
@ -182,6 +182,7 @@
|
|||||||
#define AR5K_EEPROM_EEP_DELTA 10
|
#define AR5K_EEPROM_EEP_DELTA 10
|
||||||
#define AR5K_EEPROM_N_MODES 3
|
#define AR5K_EEPROM_N_MODES 3
|
||||||
#define AR5K_EEPROM_N_5GHZ_CHAN 10
|
#define AR5K_EEPROM_N_5GHZ_CHAN 10
|
||||||
|
#define AR5K_EEPROM_N_5GHZ_RATE_CHAN 8
|
||||||
#define AR5K_EEPROM_N_2GHZ_CHAN 3
|
#define AR5K_EEPROM_N_2GHZ_CHAN 3
|
||||||
#define AR5K_EEPROM_N_2GHZ_CHAN_2413 4
|
#define AR5K_EEPROM_N_2GHZ_CHAN_2413 4
|
||||||
#define AR5K_EEPROM_N_2GHZ_CHAN_MAX 4
|
#define AR5K_EEPROM_N_2GHZ_CHAN_MAX 4
|
||||||
|
Loading…
Reference in New Issue
Block a user