diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-12-06 16:28:45 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-09 15:37:58 -0500 |
commit | 0f978bfaf2600040f9826f394eb12e023bef3068 (patch) | |
tree | 57d58a226a986fc7cf0ed4db0c9d041d0f68884e /include/linux | |
parent | 492f478d89b28c97166e4540aa13ac0e7abaa29f (diff) |
ath9k: Use a separate TX gain table for WZR-HP-G450H
The Buffalo device WZR-HP-G450H uses the index 3 for TX gain,
which is set to the high_power table currently. Later variants
of the router use the same index, but instead refer to the
low_ob_db gain table. This is not handled in the driver since
there is no way to distinguish board revisions and the high_power
table is used (incorrectly) for the newer variants.
By default, devices based on AR9300 using the TX gain index 3 have
to use the high_power table. To make sure that WZR-HP-G450H is not
broken when the high_power table is updated, use a separate array
based on information obtained from the platform data.
The current situation where only the original variant of WZR-HP-G450H
works properly stays unchanged.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ath9k_platform.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ath9k_platform.h b/include/linux/ath9k_platform.h index fcdd81bd531..8598f8eacb2 100644 --- a/include/linux/ath9k_platform.h +++ b/include/linux/ath9k_platform.h @@ -32,6 +32,8 @@ struct ath9k_platform_data { u32 gpio_val; bool is_clk_25mhz; + bool tx_gain_buffalo; + int (*get_mac_revision)(void); int (*external_reset)(void); }; |