aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 96494a612650..29b65adade60 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -802,8 +802,9 @@ struct ath_hw {
802 int firpwr[5]; 802 int firpwr[5];
803 enum ath9k_ani_cmd ani_function; 803 enum ath9k_ani_cmd ani_function;
804 804
805 /* Bluetooth coexistance */ 805#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
806 struct ath_btcoex_hw btcoex_hw; 806 struct ath_btcoex_hw btcoex_hw;
807#endif
807 808
808 u32 intr_txqs; 809 u32 intr_txqs;
809 u8 txchainmask; 810 u8 txchainmask;
@@ -1052,13 +1053,29 @@ void ath9k_hw_proc_mib_event(struct ath_hw *ah);
1052void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan); 1053void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan);
1053 1054
1054#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT 1055#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
1056static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
1057{
1058 return ah->btcoex_hw.enabled;
1059}
1060void ath9k_hw_btcoex_enable(struct ath_hw *ah);
1055static inline enum ath_btcoex_scheme 1061static inline enum ath_btcoex_scheme
1056ath9k_hw_get_btcoex_scheme(struct ath_hw *ah) 1062ath9k_hw_get_btcoex_scheme(struct ath_hw *ah)
1057{ 1063{
1058 return ah->btcoex_hw.scheme; 1064 return ah->btcoex_hw.scheme;
1059} 1065}
1060#else 1066#else
1061#define ath9k_hw_get_btcoex_scheme(...) ATH_BTCOEX_CFG_NONE 1067static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
1068{
1069 return false;
1070}
1071static inline void ath9k_hw_btcoex_enable(struct ath_hw *ah)
1072{
1073}
1074static inline enum ath_btcoex_scheme
1075ath9k_hw_get_btcoex_scheme(struct ath_hw *ah)
1076{
1077 return ATH_BTCOEX_CFG_NONE;
1078}
1062#endif 1079#endif
1063 1080
1064#define ATH9K_CLOCK_RATE_CCK 22 1081#define ATH9K_CLOCK_RATE_CCK 22