cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

debugfs_sta.h (1088B)


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