mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
mt76: add linux kernel 6.6 support
This commit is contained in:
parent
460dc30390
commit
87b840818c
24
package/kernel/mt76/patches/002-fix-page-pool.patch
Normal file
24
package/kernel/mt76/patches/002-fix-page-pool.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- a/mac80211.c
|
||||
+++ b/mac80211.c
|
||||
@@ -4,7 +4,9 @@
|
||||
*/
|
||||
#include <linux/sched.h>
|
||||
#include <linux/of.h>
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
|
||||
#include <net/page_pool.h>
|
||||
+#endif
|
||||
#include "mt76.h"
|
||||
|
||||
#define CHAN2G(_idx, _freq) { \
|
||||
--- a/mt76.h
|
||||
+++ b/mt76.h
|
||||
@@ -15,6 +15,9 @@
|
||||
#include <linux/average.h>
|
||||
#include <linux/soc/mediatek/mtk_wed.h>
|
||||
#include <net/mac80211.h>
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,0)
|
||||
+#include <net/page_pool/helpers.h>
|
||||
+#endif
|
||||
#include "util.h"
|
||||
#include "testmode.h"
|
||||
|
Loading…
Reference in New Issue
Block a user