فهرست منبع

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>
Mohammed Shafi Shajakhan 14 سال پیش
والد
کامیت
107021c4ce
2فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 1 1
      drivers/net/wireless/ath/ath9k/ani.c
  2. 1 4
      drivers/net/wireless/ath/ath9k/ani.h

+ 1 - 1
drivers/net/wireless/ath/ath9k/ani.c

@@ -643,7 +643,7 @@ static bool ath9k_hw_ani_read_counters(struct ath_hw *ah)
 	listenTime = ath_hw_get_listen_time(common);
 	listenTime = ath_hw_get_listen_time(common);
 
 
 	if (listenTime <= 0) {
 	if (listenTime <= 0) {
-		ah->stats.ast_ani_lneg++;
+		ah->stats.ast_ani_lneg_or_lzero++;
 		ath9k_ani_restart(ah);
 		ath9k_ani_restart(ah);
 		return false;
 		return false;
 	}
 	}

+ 1 - 4
drivers/net/wireless/ath/ath9k/ani.h

@@ -148,8 +148,7 @@ struct ar5416Stats {
 	u32 ast_ani_ofdmerrs;
 	u32 ast_ani_ofdmerrs;
 	u32 ast_ani_cckerrs;
 	u32 ast_ani_cckerrs;
 	u32 ast_ani_reset;
 	u32 ast_ani_reset;
-	u32 ast_ani_lzero;
-	u32 ast_ani_lneg;
+	u32 ast_ani_lneg_or_lzero;
 	u32 avgbrssi;
 	u32 avgbrssi;
 	struct ath9k_mib_stats ast_mibstats;
 	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_disable_mib_counters(struct ath_hw *ah);
 void ath9k_hw_ani_setup(struct ath_hw *ah);
 void ath9k_hw_ani_setup(struct ath_hw *ah);
 void ath9k_hw_ani_init(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 */
 #endif /* ANI_H */