1/* SPDX-License-Identifier: BSD-3-Clause-Clear */ 2/* 3 * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. 5 */ 6 7#ifndef _ATH11K_DEBUGFS_STA_H_ 8#define _ATH11K_DEBUGFS_STA_H_ 9 10#include <net/mac80211.h> 11 12#include "core.h" 13#include "hal_tx.h" 14 15#ifdef CONFIG_ATH11K_DEBUGFS 16 17void ath11k_debugfs_sta_op_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 18 struct ieee80211_sta *sta, struct dentry *dir); 19void ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta, 20 struct ath11k_per_peer_tx_stats *peer_stats, 21 u8 legacy_rate_idx); 22void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar, 23 struct hal_tx_status *ts); 24 25#else /* CONFIG_ATH11K_DEBUGFS */ 26 27#define ath11k_debugfs_sta_op_add NULL 28 29static inline void 30ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta, 31 struct ath11k_per_peer_tx_stats *peer_stats, 32 u8 legacy_rate_idx) 33{ 34} 35 36static inline void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar, 37 struct hal_tx_status *ts) 38{ 39} 40 41#endif /* CONFIG_ATH11K_DEBUGFS */ 42 43#endif /* _ATH11K_DEBUGFS_STA_H_ */ 44