From 059342ca6a68820bf377b31355a4924883cb9b44 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 24 Sep 2024 12:34:22 +0200 Subject: [PATCH] wifi: mt76: move mt76_tm_policy to from testmode.h to mt76.h This fixes using testmode.h from user space code Signed-off-by: Felix Fietkau --- mt76.h | 2 ++ testmode.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mt76.h b/mt76.h index d509f84e..03402e31 100644 --- a/mt76.h +++ b/mt76.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #if LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0) #include @@ -1473,6 +1474,7 @@ static inline void mt76_testmode_reset(struct mt76_phy *phy, bool disable) #endif } +extern const struct nla_policy mt76_tm_policy[NUM_MT76_TM_ATTRS]; /* internal */ static inline struct ieee80211_hw * diff --git a/testmode.h b/testmode.h index 5e2792d8..1b0bcae8 100644 --- a/testmode.h +++ b/testmode.h @@ -193,6 +193,4 @@ enum mt76_testmode_tx_mode { MT76_TM_TX_MODE_MAX = NUM_MT76_TM_TX_MODES - 1, }; -extern const struct nla_policy mt76_tm_policy[NUM_MT76_TM_ATTRS]; - #endif