diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ani.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index 66d0b8846a0..28a1dc37517 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c | |||
@@ -17,6 +17,12 @@ | |||
17 | #include "hw.h" | 17 | #include "hw.h" |
18 | #include "hw-ops.h" | 18 | #include "hw-ops.h" |
19 | 19 | ||
20 | /* Private to ani.c */ | ||
21 | static inline void ath9k_hw_ani_lower_immunity(struct ath_hw *ah) | ||
22 | { | ||
23 | ath9k_hw_private_ops(ah)->ani_lower_immunity(ah); | ||
24 | } | ||
25 | |||
20 | static int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah, | 26 | static int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah, |
21 | struct ath9k_channel *chan) | 27 | struct ath9k_channel *chan) |
22 | { | 28 | { |
@@ -206,7 +212,7 @@ static void ath9k_hw_ani_cck_err_trigger(struct ath_hw *ah) | |||
206 | } | 212 | } |
207 | } | 213 | } |
208 | 214 | ||
209 | static void ath9k_hw_ani_lower_immunity(struct ath_hw *ah) | 215 | static void ath9k_hw_ani_lower_immunity_old(struct ath_hw *ah) |
210 | { | 216 | { |
211 | struct ar5416AniState *aniState; | 217 | struct ar5416AniState *aniState; |
212 | int32_t rssi; | 218 | int32_t rssi; |
@@ -316,7 +322,7 @@ static int32_t ath9k_hw_ani_get_listen_time(struct ath_hw *ah) | |||
316 | return listenTime; | 322 | return listenTime; |
317 | } | 323 | } |
318 | 324 | ||
319 | void ath9k_ani_reset(struct ath_hw *ah) | 325 | static void ath9k_ani_reset_old(struct ath_hw *ah) |
320 | { | 326 | { |
321 | struct ar5416AniState *aniState; | 327 | struct ar5416AniState *aniState; |
322 | struct ath9k_channel *chan = ah->curchan; | 328 | struct ath9k_channel *chan = ah->curchan; |
@@ -402,8 +408,8 @@ void ath9k_ani_reset(struct ath_hw *ah) | |||
402 | DISABLE_REGWRITE_BUFFER(ah); | 408 | DISABLE_REGWRITE_BUFFER(ah); |
403 | } | 409 | } |
404 | 410 | ||
405 | void ath9k_hw_ani_monitor(struct ath_hw *ah, | 411 | static void ath9k_hw_ani_monitor_old(struct ath_hw *ah, |
406 | struct ath9k_channel *chan) | 412 | struct ath9k_channel *chan) |
407 | { | 413 | { |
408 | struct ar5416AniState *aniState; | 414 | struct ar5416AniState *aniState; |
409 | struct ath_common *common = ath9k_hw_common(ah); | 415 | struct ath_common *common = ath9k_hw_common(ah); |
@@ -487,7 +493,6 @@ void ath9k_hw_ani_monitor(struct ath_hw *ah, | |||
487 | } | 493 | } |
488 | } | 494 | } |
489 | } | 495 | } |
490 | EXPORT_SYMBOL(ath9k_hw_ani_monitor); | ||
491 | 496 | ||
492 | void ath9k_enable_mib_counters(struct ath_hw *ah) | 497 | void ath9k_enable_mib_counters(struct ath_hw *ah) |
493 | { | 498 | { |
@@ -572,7 +577,7 @@ u32 ath9k_hw_GetMibCycleCountsPct(struct ath_hw *ah, | |||
572 | * any of the MIB counters overflow/trigger so don't assume we're | 577 | * any of the MIB counters overflow/trigger so don't assume we're |
573 | * here because a PHY error counter triggered. | 578 | * here because a PHY error counter triggered. |
574 | */ | 579 | */ |
575 | void ath9k_hw_procmibevent(struct ath_hw *ah) | 580 | static void ath9k_hw_proc_mib_event_old(struct ath_hw *ah) |
576 | { | 581 | { |
577 | u32 phyCnt1, phyCnt2; | 582 | u32 phyCnt1, phyCnt2; |
578 | 583 | ||
@@ -628,7 +633,6 @@ void ath9k_hw_procmibevent(struct ath_hw *ah) | |||
628 | ath9k_ani_restart(ah); | 633 | ath9k_ani_restart(ah); |
629 | } | 634 | } |
630 | } | 635 | } |
631 | EXPORT_SYMBOL(ath9k_hw_procmibevent); | ||
632 | 636 | ||
633 | void ath9k_hw_ani_setup(struct ath_hw *ah) | 637 | void ath9k_hw_ani_setup(struct ath_hw *ah) |
634 | { | 638 | { |
@@ -694,3 +698,15 @@ void ath9k_hw_ani_init(struct ath_hw *ah) | |||
694 | if (ah->config.enable_ani) | 698 | if (ah->config.enable_ani) |
695 | ah->proc_phyerr |= HAL_PROCESS_ANI; | 699 | ah->proc_phyerr |= HAL_PROCESS_ANI; |
696 | } | 700 | } |
701 | |||
702 | void ath9k_hw_attach_ani_ops_old(struct ath_hw *ah) | ||
703 | { | ||
704 | struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah); | ||
705 | struct ath_hw_ops *ops = ath9k_hw_ops(ah); | ||
706 | |||
707 | priv_ops->ani_reset = ath9k_ani_reset_old; | ||
708 | priv_ops->ani_lower_immunity = ath9k_hw_ani_lower_immunity_old; | ||
709 | |||
710 | ops->ani_proc_mib_event = ath9k_hw_proc_mib_event_old; | ||
711 | ops->ani_monitor = ath9k_hw_ani_monitor_old; | ||
712 | } | ||