testmode.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: BSD-3-Clause-Clear */
  2. /*
  3. * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #include "core.h"
  7. #include "hif.h"
  8. #ifdef CONFIG_NL80211_TESTMODE
  9. void ath12k_tm_wmi_event_unsegmented(struct ath12k_base *ab, u32 cmd_id,
  10. struct sk_buff *skb);
  11. void ath12k_tm_process_event(struct ath12k_base *ab, u32 cmd_id,
  12. const struct ath12k_wmi_ftm_event *ftm_msg,
  13. u16 length);
  14. int ath12k_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
  15. void *data, int len);
  16. #else
  17. static inline void ath12k_tm_wmi_event_unsegmented(struct ath12k_base *ab, u32 cmd_id,
  18. struct sk_buff *skb)
  19. {
  20. }
  21. static inline void ath12k_tm_process_event(struct ath12k_base *ab, u32 cmd_id,
  22. const struct ath12k_wmi_ftm_event *msg,
  23. u16 length)
  24. {
  25. }
  26. static inline int ath12k_tm_cmd(struct ieee80211_hw *hw,
  27. struct ieee80211_vif *vif,
  28. void *data, int len)
  29. {
  30. return 0;
  31. }
  32. #endif