mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-25 05:47:00 +00:00
25 lines
545 B
Diff
25 lines
545 B
Diff
|
--- 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,6,0)
|
||
|
#include <net/page_pool.h>
|
||
|
+#endif
|
||
|
#include "mt76.h"
|
||
|
|
||
|
#define CHAN2G(_idx, _freq) { \
|
||
|
--- a/mt76.h
|
||
|
+++ b/mt76.h
|
||
|
@@ -13,6 +13,9 @@
|
||
|
#include <linux/leds.h>
|
||
|
#include <linux/usb.h>
|
||
|
#include <linux/average.h>
|
||
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0)
|
||
|
+#include <net/page_pool/helpers.h>
|
||
|
+#endif
|
||
|
#include <linux/soc/mediatek/mtk_wed.h>
|
||
|
#include <net/mac80211.h>
|
||
|
#include "util.h"
|