debugfs_sta.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #ifndef _ATH11K_DEBUGFS_STA_H_
  7. #define _ATH11K_DEBUGFS_STA_H_
  8. #include <net/mac80211.h>
  9. #include "core.h"
  10. #include "hal_tx.h"
  11. #ifdef CONFIG_ATH11K_DEBUGFS
  12. void ath11k_debugfs_sta_op_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
  13. struct ieee80211_sta *sta, struct dentry *dir);
  14. void ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta,
  15. struct ath11k_per_peer_tx_stats *peer_stats,
  16. u8 legacy_rate_idx);
  17. void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar,
  18. struct hal_tx_status *ts);
  19. #else /* CONFIG_ATH11K_DEBUGFS */
  20. #define ath11k_debugfs_sta_op_add NULL
  21. static inline void
  22. ath11k_debugfs_sta_add_tx_stats(struct ath11k_sta *arsta,
  23. struct ath11k_per_peer_tx_stats *peer_stats,
  24. u8 legacy_rate_idx)
  25. {
  26. }
  27. static inline void ath11k_debugfs_sta_update_txcompl(struct ath11k *ar,
  28. struct hal_tx_status *ts)
  29. {
  30. }
  31. #endif /* CONFIG_ATH11K_DEBUGFS */
  32. #endif /* _ATH11K_DEBUGFS_STA_H_ */