xref: /linux/drivers/net/wireless/ath/ath12k/testmode.h (revision f694f30e81c4ade358eb8c75273bac1a48f0cb8f)
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 
7 #include "core.h"
8 #include "hif.h"
9 
10 #ifdef CONFIG_NL80211_TESTMODE
11 
12 void ath12k_tm_wmi_event_unsegmented(struct ath12k_base *ab, u32 cmd_id,
13 				     struct sk_buff *skb);
14 void ath12k_tm_process_event(struct ath12k_base *ab, u32 cmd_id,
15 			     const struct ath12k_wmi_ftm_event *ftm_msg,
16 			     u16 length);
17 int ath12k_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
18 		  void *data, int len);
19 
20 #else
21 
22 static inline void ath12k_tm_wmi_event_unsegmented(struct ath12k_base *ab, u32 cmd_id,
23 						   struct sk_buff *skb)
24 {
25 }
26 
27 static inline void ath12k_tm_process_event(struct ath12k_base *ab, u32 cmd_id,
28 					   const struct ath12k_wmi_ftm_event *msg,
29 					   u16 length)
30 {
31 }
32 
33 static inline int ath12k_tm_cmd(struct ieee80211_hw *hw,
34 				struct ieee80211_vif *vif,
35 				void *data, int len)
36 {
37 	return 0;
38 }
39 
40 #endif
41