ath9k: minor cleanup in ani
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Fri, 26 Aug 2011 05:49:57 +0000 (11:19 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Aug 2011 19:25:29 +0000 (15:25 -0400)
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>
drivers/net/wireless/ath/ath9k/ani.c
drivers/net/wireless/ath/ath9k/ani.h

index bfb6481f01f9ba9d06aa92fecf9c6ccd4e9c0757..d969a11e342584f71be1abe9e9cceacd9d4ae026 100644 (file)
@@ -643,7 +643,7 @@ static bool ath9k_hw_ani_read_counters(struct ath_hw *ah)
        listenTime = ath_hw_get_listen_time(common);
 
        if (listenTime <= 0) {
-               ah->stats.ast_ani_lneg++;
+               ah->stats.ast_ani_lneg_or_lzero++;
                ath9k_ani_restart(ah);
                return false;
        }
index dbab5b9ce4948a3174a4a6e1bb4c74b800f3eb90..a547005572e7f4a7edcccf9957ab9b6aac53cabf 100644 (file)
@@ -148,8 +148,7 @@ struct ar5416Stats {
        u32 ast_ani_ofdmerrs;
        u32 ast_ani_cckerrs;
        u32 ast_ani_reset;
-       u32 ast_ani_lzero;
-       u32 ast_ani_lneg;
+       u32 ast_ani_lneg_or_lzero;
        u32 avgbrssi;
        struct ath9k_mib_stats ast_mibstats;
 };
@@ -159,7 +158,5 @@ void ath9k_enable_mib_counters(struct ath_hw *ah);
 void ath9k_hw_disable_mib_counters(struct ath_hw *ah);
 void ath9k_hw_ani_setup(struct ath_hw *ah);
 void ath9k_hw_ani_init(struct ath_hw *ah);
-int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah,
-                                struct ath9k_channel *chan);
 
 #endif /* ANI_H */