linux-zen-desktop/drivers/net/wireless/ath/ath11k/testmode.h

30 lines
690 B
C
Raw Normal View History

2023-08-30 17:31:07 +02:00
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
2023-10-24 12:59:35 +02:00
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
2023-08-30 17:31:07 +02:00
*/
#include "core.h"
#ifdef CONFIG_NL80211_TESTMODE
2023-10-24 12:59:35 +02:00
void ath11k_tm_wmi_event(struct ath11k_base *ab, u32 cmd_id, struct sk_buff *skb);
2023-08-30 17:31:07 +02:00
int ath11k_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
void *data, int len);
#else
2023-10-24 12:59:35 +02:00
static inline void ath11k_tm_wmi_event(struct ath11k_base *ab, u32 cmd_id,
2023-08-30 17:31:07 +02:00
struct sk_buff *skb)
{
}
static inline int ath11k_tm_cmd(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
void *data, int len)
{
return 0;
}
#endif