lede/package/kernel/mt76/patches-6.x/200-fix-kernel-6.12-support.patch
2025-05-30 23:25:28 +08:00

15 lines
317 B
Diff

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