@@ -9,6 +9,7 @@
#include "wmi.h"
#include "hal_rx.h"
#include "dp_tx.h"
+#include "debug_htt_stats.h"
void ath11k_info(struct ath11k_base *sc, const char *fmt, ...)
{
@@ -1145,7 +1146,7 @@ int ath11k_debug_register(struct ath11k *ar)
snprintf(buf, 100, "../../%pd2", ar->debug.debugfs_pdev);
debugfs_create_symlink("ath11k", ar->hw->wiphy->debugfsdir, buf);
- ath11k_htt_stats_debugfs_init(ar);
+ ath11k_debug_htt_stats_init(ar);
ath11k_debug_fw_stats_init(ar);
@@ -139,7 +139,6 @@ static inline void ath11k_dbg_dump(struct ath11k_base *ab,
void ath11k_debug_soc_destroy(struct ath11k_base *sc);
int ath11k_debug_register(struct ath11k *ar);
void ath11k_debug_unregister(struct ath11k *ar);
-void ath11k_htt_stats_debugfs_init(struct ath11k *ar);
void ath11k_dbg_htt_ext_stats_handler(struct ath11k_base *ab,
struct sk_buff *skb);
void ath11k_debug_fw_stats_process(struct ath11k_base *ab, u8 *evt_buf,
@@ -193,10 +192,6 @@ static inline void ath11k_debug_unregister(struct ath11k *ar)
{
}
-static inline void ath11k_htt_stats_debugfs_init(struct ath11k *ar)
-{
-}
-
static inline void ath11k_dbg_htt_ext_stats_handler(struct ath11k_base *ab,
struct sk_buff *skb)
{
@@ -4482,7 +4482,7 @@ static ssize_t ath11k_write_htt_stats_reset(struct file *file,
.llseek = default_llseek,
};
-void ath11k_htt_stats_debugfs_init(struct ath11k *ar)
+void ath11k_debug_htt_stats_init(struct ath11k *ar)
{
spin_lock_init(&ar->debug.htt_stats.lock);
debugfs_create_file("htt_stats_type", 0600, ar->debug.debugfs_pdev,
@@ -1612,4 +1612,6 @@ struct htt_pdev_obss_pd_stats_tlv {
u32 num_obss_tx_ppdu_success;
u32 num_obss_tx_ppdu_failure;
};
+
+void ath11k_debug_htt_stats_init(struct ath11k *ar);
#endif
This renames htt stats init function and moves the function declaration into debug_htt_stats.h. Signed-off-by: Bhagavathi Perumal S <bperumal@codeaurora.org> --- drivers/net/wireless/ath/ath11k/debug.c | 3 ++- drivers/net/wireless/ath/ath11k/debug.h | 5 ----- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 2 +- drivers/net/wireless/ath/ath11k/debug_htt_stats.h | 2 ++ 4 files changed, 5 insertions(+), 7 deletions(-)