diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw-ops.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw-ops.h | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw-ops.h b/drivers/net/wireless/ath/ath9k/hw-ops.h index ffecbadaea4a..2f3e07263fcb 100644 --- a/drivers/net/wireless/ath/ath9k/hw-ops.h +++ b/drivers/net/wireless/ath/ath9k/hw-ops.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2010 Atheros Communications Inc. | 2 | * Copyright (c) 2010-2011 Atheros Communications Inc. |
3 | * | 3 | * |
4 | * Permission to use, copy, modify, and/or distribute this software for any | 4 | * Permission to use, copy, modify, and/or distribute this software for any |
5 | * purpose with or without fee is hereby granted, provided that the above | 5 | * purpose with or without fee is hereby granted, provided that the above |
@@ -116,27 +116,21 @@ static inline void ath9k_hw_clr11n_aggr(struct ath_hw *ah, void *ds) | |||
116 | ath9k_hw_ops(ah)->clr11n_aggr(ah, ds); | 116 | ath9k_hw_ops(ah)->clr11n_aggr(ah, ds); |
117 | } | 117 | } |
118 | 118 | ||
119 | static inline void ath9k_hw_set11n_burstduration(struct ath_hw *ah, void *ds, | 119 | static inline void ath9k_hw_set_clrdmask(struct ath_hw *ah, void *ds, bool val) |
120 | u32 burstDuration) | ||
121 | { | 120 | { |
122 | ath9k_hw_ops(ah)->set11n_burstduration(ah, ds, burstDuration); | 121 | ath9k_hw_ops(ah)->set_clrdmask(ah, ds, val); |
123 | } | 122 | } |
124 | 123 | ||
125 | static inline void ath9k_hw_set11n_virtualmorefrag(struct ath_hw *ah, void *ds, | 124 | static inline void ath9k_hw_antdiv_comb_conf_get(struct ath_hw *ah, |
126 | u32 vmf) | 125 | struct ath_hw_antcomb_conf *antconf) |
127 | { | 126 | { |
128 | ath9k_hw_ops(ah)->set11n_virtualmorefrag(ah, ds, vmf); | 127 | ath9k_hw_ops(ah)->antdiv_comb_conf_get(ah, antconf); |
129 | } | 128 | } |
130 | 129 | ||
131 | static inline void ath9k_hw_procmibevent(struct ath_hw *ah) | 130 | static inline void ath9k_hw_antdiv_comb_conf_set(struct ath_hw *ah, |
131 | struct ath_hw_antcomb_conf *antconf) | ||
132 | { | 132 | { |
133 | ath9k_hw_ops(ah)->ani_proc_mib_event(ah); | 133 | ath9k_hw_ops(ah)->antdiv_comb_conf_set(ah, antconf); |
134 | } | ||
135 | |||
136 | static inline void ath9k_hw_ani_monitor(struct ath_hw *ah, | ||
137 | struct ath9k_channel *chan) | ||
138 | { | ||
139 | ath9k_hw_ops(ah)->ani_monitor(ah, chan); | ||
140 | } | 134 | } |
141 | 135 | ||
142 | /* Private hardware call ops */ | 136 | /* Private hardware call ops */ |
@@ -234,11 +228,6 @@ static inline void ath9k_hw_rfbus_done(struct ath_hw *ah) | |||
234 | return ath9k_hw_private_ops(ah)->rfbus_done(ah); | 228 | return ath9k_hw_private_ops(ah)->rfbus_done(ah); |
235 | } | 229 | } |
236 | 230 | ||
237 | static inline void ath9k_enable_rfkill(struct ath_hw *ah) | ||
238 | { | ||
239 | return ath9k_hw_private_ops(ah)->enable_rfkill(ah); | ||
240 | } | ||
241 | |||
242 | static inline void ath9k_hw_restore_chainmask(struct ath_hw *ah) | 231 | static inline void ath9k_hw_restore_chainmask(struct ath_hw *ah) |
243 | { | 232 | { |
244 | if (!ath9k_hw_private_ops(ah)->restore_chainmask) | 233 | if (!ath9k_hw_private_ops(ah)->restore_chainmask) |
@@ -276,15 +265,4 @@ static inline void ath9k_hw_setup_calibration(struct ath_hw *ah, | |||
276 | ath9k_hw_private_ops(ah)->setup_calibration(ah, currCal); | 265 | ath9k_hw_private_ops(ah)->setup_calibration(ah, currCal); |
277 | } | 266 | } |
278 | 267 | ||
279 | static inline bool ath9k_hw_iscal_supported(struct ath_hw *ah, | ||
280 | enum ath9k_cal_types calType) | ||
281 | { | ||
282 | return ath9k_hw_private_ops(ah)->iscal_supported(ah, calType); | ||
283 | } | ||
284 | |||
285 | static inline void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning) | ||
286 | { | ||
287 | ath9k_hw_private_ops(ah)->ani_reset(ah, is_scanning); | ||
288 | } | ||
289 | |||
290 | #endif /* ATH9K_HW_OPS_H */ | 268 | #endif /* ATH9K_HW_OPS_H */ |