From 87b840818c2e98f9fa444709e5002789c3673eef Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Fri, 26 Jan 2024 17:58:35 +0800 Subject: [PATCH] mt76: add linux kernel 6.6 support --- .../mt76/patches/002-fix-page-pool.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/kernel/mt76/patches/002-fix-page-pool.patch diff --git a/package/kernel/mt76/patches/002-fix-page-pool.patch b/package/kernel/mt76/patches/002-fix-page-pool.patch new file mode 100644 index 000000000..b8d552ffd --- /dev/null +++ b/package/kernel/mt76/patches/002-fix-page-pool.patch @@ -0,0 +1,24 @@ +--- 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" +