-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ath11k: debugfs: move some function declarations to correct header files
Some of the function declarations are for functions in debugfs_htt_stats.c and debugfs_sta.c, move them to corresponding header files. As debugfs_sta.h didn't exist create it. Also in debugfs_htt_stats.h move dunction declarations to the end of the file. No functional changes. Compile tested only. Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1600264523-12939-4-git-send-email-kvalo@codeaurora.org
- Loading branch information
Kalle Valo
committed
Sep 22, 2020
1 parent
5629216
commit 568f060
Showing
8 changed files
with
75 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* SPDX-License-Identifier: BSD-3-Clause-Clear */ | ||
/* | ||
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved. | ||
*/ | ||
|
||
#ifndef _ATH11K_DEBUGFS_STA_H_ | ||
#define _ATH11K_DEBUGFS_STA_H_ | ||
|
||
#include <net/mac80211.h> | ||
|
||
#include "core.h" | ||
#include "hal_tx.h" | ||
|
||
#ifdef CONFIG_ATH11K_DEBUGFS | ||
|
||
void ath11k_debugfs_sta_op_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | ||
struct ieee80211_sta *sta, struct dentry *dir); | ||
void ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta, | ||
struct ath11k_per_peer_tx_stats *peer_stats, | ||
u8 legacy_rate_idx); | ||
void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar, | ||
struct sk_buff *msdu, | ||
struct hal_tx_status *ts); | ||
|
||
#else /* CONFIG_ATH11K_DEBUGFS */ | ||
|
||
#define ath11k_debugfs_sta_op_add NULL | ||
|
||
static inline void | ||
ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta, | ||
struct ath11k_per_peer_tx_stats *peer_stats, | ||
u8 legacy_rate_idx) | ||
{ | ||
} | ||
|
||
static inline void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar, | ||
struct sk_buff *msdu, | ||
struct hal_tx_status *ts) | ||
{ | ||
} | ||
|
||
#endif /* CONFIG_ATH11K_DEBUGFS */ | ||
|
||
#endif /* _ATH11K_DEBUGFS_STA_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters