diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-08-15 14:49:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-08-15 14:49:59 +0000 |
commit | 8ff90336c85fe30d9bb686b2fa99206cea71ee71 (patch) | |
tree | a2ae30ef81cb77b5f796a4aed9c722add1250264 /package | |
parent | 5890787733f61e718e4ca09df7874c3bd9c6f4f3 (diff) | |
download | master-187ad058-8ff90336c85fe30d9bb686b2fa99206cea71ee71.tar.gz master-187ad058-8ff90336c85fe30d9bb686b2fa99206cea71ee71.tar.bz2 master-187ad058-8ff90336c85fe30d9bb686b2fa99206cea71ee71.zip |
ath5k: add back a patch for fixing eeprom rate power parsing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33198 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/mac80211/patches/300-pending_work.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index 9addfa0402..3255b8da0c 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -4411,3 +4411,24 @@ if (ret) return ret; +--- a/drivers/net/wireless/ath/ath5k/eeprom.c ++++ b/drivers/net/wireless/ath/ath5k/eeprom.c +@@ -1484,7 +1484,7 @@ ath5k_eeprom_read_target_rate_pwr_info(s + case AR5K_EEPROM_MODE_11A: + offset += AR5K_EEPROM_TARGET_PWR_OFF_11A(ee->ee_version); + 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; + case AR5K_EEPROM_MODE_11B: + offset += AR5K_EEPROM_TARGET_PWR_OFF_11B(ee->ee_version); +--- a/drivers/net/wireless/ath/ath5k/eeprom.h ++++ b/drivers/net/wireless/ath/ath5k/eeprom.h +@@ -182,6 +182,7 @@ + #define AR5K_EEPROM_EEP_DELTA 10 + #define AR5K_EEPROM_N_MODES 3 + #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_2413 4 + #define AR5K_EEPROM_N_2GHZ_CHAN_MAX 4 |