--- a/mac80211.c +++ b/mac80211.c @@ -4,7 +4,9 @@ */ #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) #include +#endif #include "mt76.h" #define CHAN2G(_idx, _freq) { \ --- a/mt76.h +++ b/mt76.h @@ -15,6 +15,9 @@ #include #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,0) +#include +#endif #include "util.h" #include "testmode.h"