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

testmode.h (619B)


      1/* SPDX-License-Identifier: BSD-3-Clause-Clear */
      2/*
      3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
      4 */
      5
      6#include "core.h"
      7
      8#ifdef CONFIG_NL80211_TESTMODE
      9
     10bool ath11k_tm_event_wmi(struct ath11k *ar, u32 cmd_id, struct sk_buff *skb);
     11int ath11k_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
     12		  void *data, int len);
     13
     14#else
     15
     16static inline bool ath11k_tm_event_wmi(struct ath11k *ar, u32 cmd_id,
     17				       struct sk_buff *skb)
     18{
     19	return false;
     20}
     21
     22static inline int ath11k_tm_cmd(struct ieee80211_hw *hw,
     23				struct ieee80211_vif *vif,
     24				void *data, int len)
     25{
     26	return 0;
     27}
     28
     29#endif