diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2009-09-18 05:38:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:40 -0400 |
commit | e41f0bfcb130d9f17cf5ee8e46d739c1bebda963 (patch) | |
tree | d8a81b3e0cb3bb0b48ce711ae7684312ae69991a /drivers/net/wireless/ath/ath9k/eeprom.h | |
parent | ebb90cfc32f0d7ee55be7787ce7d88e521e9ed01 (diff) |
ath9k: Fix bugs in handling TX power
* Get power table offset from the EEPROM instead of using
a hardcoded value of -5 if the EEPROM rev is >= 21.
* Add support in the 4k eeprom code for tx power offset
in case we have a 4k AR9280 implementation.
* Fix tx power accuracy at high powers.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h index 33492741735d..2f2993b50e2f 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.h +++ b/drivers/net/wireless/ath/ath9k/eeprom.h | |||
@@ -134,6 +134,7 @@ | |||
134 | #define AR5416_EEP_MINOR_VER_17 0x11 | 134 | #define AR5416_EEP_MINOR_VER_17 0x11 |
135 | #define AR5416_EEP_MINOR_VER_19 0x13 | 135 | #define AR5416_EEP_MINOR_VER_19 0x13 |
136 | #define AR5416_EEP_MINOR_VER_20 0x14 | 136 | #define AR5416_EEP_MINOR_VER_20 0x14 |
137 | #define AR5416_EEP_MINOR_VER_21 0x15 | ||
137 | #define AR5416_EEP_MINOR_VER_22 0x16 | 138 | #define AR5416_EEP_MINOR_VER_22 0x16 |
138 | 139 | ||
139 | #define AR5416_NUM_5G_CAL_PIERS 8 | 140 | #define AR5416_NUM_5G_CAL_PIERS 8 |
@@ -154,7 +155,7 @@ | |||
154 | #define AR5416_BCHAN_UNUSED 0xFF | 155 | #define AR5416_BCHAN_UNUSED 0xFF |
155 | #define AR5416_MAX_PWR_RANGE_IN_HALF_DB 64 | 156 | #define AR5416_MAX_PWR_RANGE_IN_HALF_DB 64 |
156 | #define AR5416_MAX_CHAINS 3 | 157 | #define AR5416_MAX_CHAINS 3 |
157 | #define AR5416_PWR_TABLE_OFFSET -5 | 158 | #define AR5416_PWR_TABLE_OFFSET_DB -5 |
158 | 159 | ||
159 | /* Rx gain type values */ | 160 | /* Rx gain type values */ |
160 | #define AR5416_EEP_RXGAIN_23DB_BACKOFF 0 | 161 | #define AR5416_EEP_RXGAIN_23DB_BACKOFF 0 |
@@ -302,7 +303,7 @@ struct base_eep_header { | |||
302 | u8 txGainType; | 303 | u8 txGainType; |
303 | u8 rcChainMask; | 304 | u8 rcChainMask; |
304 | u8 desiredScaleCCK; | 305 | u8 desiredScaleCCK; |
305 | u8 power_table_offset; | 306 | u8 pwr_table_offset; |
306 | u8 frac_n_5g; | 307 | u8 frac_n_5g; |
307 | u8 futureBase_3[21]; | 308 | u8 futureBase_3[21]; |
308 | } __packed; | 309 | } __packed; |