diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-02-11 23:36:36 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:51:42 -0500 |
commit | e421c7b35c17752dbe6d26d910eb2d6814073355 (patch) | |
tree | 0aadf5babeefb224cd2a56ec8ba7ddba159959c0 /drivers/net/wireless/ath9k/eeprom.h | |
parent | 469002983fc90c2ff0959e2b03335c0fe2e4d5a9 (diff) |
ath9k: Store the correct max TX power level
This patch fixes a bug where the max power level
was being calculated incorrectly.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath9k/eeprom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.h b/drivers/net/wireless/ath9k/eeprom.h index 99863b570441..b7c656c84ba3 100644 --- a/drivers/net/wireless/ath9k/eeprom.h +++ b/drivers/net/wireless/ath9k/eeprom.h | |||
@@ -75,6 +75,9 @@ | |||
75 | #define SUB_NUM_CTL_MODES_AT_5G_40 2 | 75 | #define SUB_NUM_CTL_MODES_AT_5G_40 2 |
76 | #define SUB_NUM_CTL_MODES_AT_2G_40 3 | 76 | #define SUB_NUM_CTL_MODES_AT_2G_40 3 |
77 | 77 | ||
78 | #define INCREASE_MAXPOW_BY_TWO_CHAIN 6 /* 10*log10(2)*2 */ | ||
79 | #define INCREASE_MAXPOW_BY_THREE_CHAIN 10 /* 10*log10(3)*2 */ | ||
80 | |||
78 | #define AR_EEPROM_MAC(i) (0x1d+(i)) | 81 | #define AR_EEPROM_MAC(i) (0x1d+(i)) |
79 | #define ATH9K_POW_SM(_r, _s) (((_r) & 0x3f) << (_s)) | 82 | #define ATH9K_POW_SM(_r, _s) (((_r) & 0x3f) << (_s)) |
80 | #define FREQ2FBIN(x, y) ((y) ? ((x) - 2300) : (((x) - 4800) / 5)) | 83 | #define FREQ2FBIN(x, y) ((y) ? ((x) - 2300) : (((x) - 4800) / 5)) |