testmode.h 696 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: ISC */
  2. /*
  3. * Copyright (c) 2014 Qualcomm Atheros, Inc.
  4. */
  5. #include "core.h"
  6. #ifdef CONFIG_NL80211_TESTMODE
  7. void ath10k_testmode_destroy(struct ath10k *ar);
  8. bool ath10k_tm_event_wmi(struct ath10k *ar, u32 cmd_id, struct sk_buff *skb);
  9. int ath10k_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
  10. void *data, int len);
  11. #else
  12. static inline void ath10k_testmode_destroy(struct ath10k *ar)
  13. {
  14. }
  15. static inline bool ath10k_tm_event_wmi(struct ath10k *ar, u32 cmd_id,
  16. struct sk_buff *skb)
  17. {
  18. return false;
  19. }
  20. static inline int ath10k_tm_cmd(struct ieee80211_hw *hw,
  21. struct ieee80211_vif *vif,
  22. void *data, int len)
  23. {
  24. return 0;
  25. }
  26. #endif