testmode.h 619 B

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