diff --git a/mac80211.c b/mac80211.c index b603d40c..e7b763ba 100644 --- a/mac80211.c +++ b/mac80211.c @@ -4,7 +4,6 @@ */ #include #include -#include #include "mt76.h" #define CHAN2G(_idx, _freq) { \ diff --git a/mt76.h b/mt76.h index 294e379a..2cbea731 100644 --- a/mt76.h +++ b/mt76.h @@ -15,6 +15,11 @@ #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0) +#include +#else +#include +#endif #include "util.h" #include "testmode.h"