Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / net / wireless / ath / ath11k / debugfs_sta.h
blob18dc65d9edcfb2593f05f0f3fc20faf3867a8150
1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
2 /*
3 * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
4 */
6 #ifndef _ATH11K_DEBUGFS_STA_H_
7 #define _ATH11K_DEBUGFS_STA_H_
9 #include <net/mac80211.h>
11 #include "core.h"
12 #include "hal_tx.h"
14 #ifdef CONFIG_ATH11K_DEBUGFS
16 void ath11k_debugfs_sta_op_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
17 struct ieee80211_sta *sta, struct dentry *dir);
18 void ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta,
19 struct ath11k_per_peer_tx_stats *peer_stats,
20 u8 legacy_rate_idx);
21 void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar,
22 struct sk_buff *msdu,
23 struct hal_tx_status *ts);
25 #else /* CONFIG_ATH11K_DEBUGFS */
27 #define ath11k_debugfs_sta_op_add NULL
29 static inline void
30 ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta,
31 struct ath11k_per_peer_tx_stats *peer_stats,
32 u8 legacy_rate_idx)
36 static inline void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar,
37 struct sk_buff *msdu,
38 struct hal_tx_status *ts)
42 #endif /* CONFIG_ATH11K_DEBUGFS */
44 #endif /* _ATH11K_DEBUGFS_STA_H_ */