100-fix-build-on-linux-kernel-6.6.patch 545 B

123456789101112131415161718192021222324
  1. --- a/mac80211.c
  2. +++ b/mac80211.c
  3. @@ -4,7 +4,9 @@
  4. */
  5. #include <linux/sched.h>
  6. #include <linux/of.h>
  7. +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0)
  8. #include <net/page_pool.h>
  9. +#endif
  10. #include "mt76.h"
  11. #define CHAN2G(_idx, _freq) { \
  12. --- a/mt76.h
  13. +++ b/mt76.h
  14. @@ -13,6 +13,9 @@
  15. #include <linux/leds.h>
  16. #include <linux/usb.h>
  17. #include <linux/average.h>
  18. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0)
  19. +#include <net/page_pool/helpers.h>
  20. +#endif
  21. #include <linux/soc/mediatek/mtk_wed.h>
  22. #include <net/mac80211.h>
  23. #include "util.h"