diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2011-08-26 01:49:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-29 15:25:29 -0400 |
commit | 107021c4ce105c9c9d5406dfc4b1fe0f2aa86455 (patch) | |
tree | 750420670513411746928bb232cb24264cda2933 /drivers/net | |
parent | 9976f62e7c4e77248b84a35ab0e87e6bc4682ca0 (diff) |
ath9k: minor cleanup in ani
removed a function declaration, removed a variable, renamed a variable
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.h | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index bfb6481f01f9..d969a11e3425 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c | |||
@@ -643,7 +643,7 @@ static bool ath9k_hw_ani_read_counters(struct ath_hw *ah) | |||
643 | listenTime = ath_hw_get_listen_time(common); | 643 | listenTime = ath_hw_get_listen_time(common); |
644 | 644 | ||
645 | if (listenTime <= 0) { | 645 | if (listenTime <= 0) { |
646 | ah->stats.ast_ani_lneg++; | 646 | ah->stats.ast_ani_lneg_or_lzero++; |
647 | ath9k_ani_restart(ah); | 647 | ath9k_ani_restart(ah); |
648 | return false; | 648 | return false; |
649 | } | 649 | } |
diff --git a/drivers/net/wireless/ath/ath9k/ani.h b/drivers/net/wireless/ath/ath9k/ani.h index dbab5b9ce494..a547005572e7 100644 --- a/drivers/net/wireless/ath/ath9k/ani.h +++ b/drivers/net/wireless/ath/ath9k/ani.h | |||
@@ -148,8 +148,7 @@ struct ar5416Stats { | |||
148 | u32 ast_ani_ofdmerrs; | 148 | u32 ast_ani_ofdmerrs; |
149 | u32 ast_ani_cckerrs; | 149 | u32 ast_ani_cckerrs; |
150 | u32 ast_ani_reset; | 150 | u32 ast_ani_reset; |
151 | u32 ast_ani_lzero; | 151 | u32 ast_ani_lneg_or_lzero; |
152 | u32 ast_ani_lneg; | ||
153 | u32 avgbrssi; | 152 | u32 avgbrssi; |
154 | struct ath9k_mib_stats ast_mibstats; | 153 | struct ath9k_mib_stats ast_mibstats; |
155 | }; | 154 | }; |
@@ -159,7 +158,5 @@ void ath9k_enable_mib_counters(struct ath_hw *ah); | |||
159 | void ath9k_hw_disable_mib_counters(struct ath_hw *ah); | 158 | void ath9k_hw_disable_mib_counters(struct ath_hw *ah); |
160 | void ath9k_hw_ani_setup(struct ath_hw *ah); | 159 | void ath9k_hw_ani_setup(struct ath_hw *ah); |
161 | void ath9k_hw_ani_init(struct ath_hw *ah); | 160 | void ath9k_hw_ani_init(struct ath_hw *ah); |
162 | int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah, | ||
163 | struct ath9k_channel *chan); | ||
164 | 161 | ||
165 | #endif /* ANI_H */ | 162 | #endif /* ANI_H */ |