testmode.h 690 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: BSD-3-Clause-Clear */
  2. /*
  3. * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #include "core.h"
  7. #ifdef CONFIG_NL80211_TESTMODE
  8. void ath11k_tm_wmi_event(struct ath11k_base *ab, u32 cmd_id, struct sk_buff *skb);
  9. int ath11k_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
  10. void *data, int len);
  11. #else
  12. static inline void ath11k_tm_wmi_event(struct ath11k_base *ab, u32 cmd_id,
  13. struct sk_buff *skb)
  14. {
  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