lede/package/kernel/mt76/patches-6.x/200-fix-kernel-6.12-support.patch
2024-11-29 17:20:57 +08:00

15 lines
277 B
Diff

--- a/mac80211.c
+++ b/mac80211.c
@@ -570,7 +570,11 @@
{
struct page_pool_params pp_params = {
.order = 0,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
+ .flags = 0,
+#else
.flags = PP_FLAG_PAGE_FRAG,
+#endif
.nid = NUMA_NO_NODE,
.dev = dev->dma_dev,
};