diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2010-09-02 04:34:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-07 13:54:33 -0400 |
commit | 21cc630f47d8589a42d563e89be4c631edbe8716 (patch) | |
tree | 82ed06d5a1a677f1cb74e9a9abd3ae7cb5302872 /drivers/net/wireless/ath/ath9k/hw.h | |
parent | 754dc53641e0038cd4fd3574b1f5b3c7239f73ce (diff) |
ath9k_hw: Add functions to get/set antenna diversity configuration
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 1a0efbd03e4f..197c717286e7 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -496,6 +496,12 @@ struct ath_gen_timer_table { | |||
496 | } timer_mask; | 496 | } timer_mask; |
497 | }; | 497 | }; |
498 | 498 | ||
499 | struct ath_hw_antcomb_conf { | ||
500 | u8 main_lna_conf; | ||
501 | u8 alt_lna_conf; | ||
502 | u8 fast_div_bias; | ||
503 | }; | ||
504 | |||
499 | /** | 505 | /** |
500 | * struct ath_hw_private_ops - callbacks used internally by hardware code | 506 | * struct ath_hw_private_ops - callbacks used internally by hardware code |
501 | * | 507 | * |
@@ -889,6 +895,10 @@ void ath9k_hw_cfg_output(struct ath_hw *ah, u32 gpio, | |||
889 | void ath9k_hw_set_gpio(struct ath_hw *ah, u32 gpio, u32 val); | 895 | void ath9k_hw_set_gpio(struct ath_hw *ah, u32 gpio, u32 val); |
890 | u32 ath9k_hw_getdefantenna(struct ath_hw *ah); | 896 | u32 ath9k_hw_getdefantenna(struct ath_hw *ah); |
891 | void ath9k_hw_setantenna(struct ath_hw *ah, u32 antenna); | 897 | void ath9k_hw_setantenna(struct ath_hw *ah, u32 antenna); |
898 | void ath9k_hw_antdiv_comb_conf_get(struct ath_hw *ah, | ||
899 | struct ath_hw_antcomb_conf *antconf); | ||
900 | void ath9k_hw_antdiv_comb_conf_set(struct ath_hw *ah, | ||
901 | struct ath_hw_antcomb_conf *antconf); | ||
892 | 902 | ||
893 | /* General Operation */ | 903 | /* General Operation */ |
894 | bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout); | 904 | bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout); |