[packages/rtl8812au] - rel 5, fix building with latest 6.1 and 6.6 kernels
baggins
baggins at pld-linux.org
Tue Sep 29 01:00:53 CEST 2026
commit 4dc7ff45dd6c4bd0d4c7ca11101899a61475cbce
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Sep 29 01:00:14 2026 +0200
- rel 5, fix building with latest 6.1 and 6.6 kernels
drvwrap.patch | 11 +++++++++++
rtl8812au.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index a36ea9c..b2eacfd 100644
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -5,7 +5,7 @@
# nothing to be placed to debuginfo package
%define _enable_debug_packages 0
-%define rel 4
+%define rel 5
%define basever 20210820
%define snap 20250614
%define pname rtl8812au
@@ -23,6 +23,7 @@ Source0: %{pname}-%{version}.tar.xz
Patch0: no-arch-override.patch
Patch1: kernel-6.15.patch
Patch2: kernel-6.12.103.patch
+Patch3: drvwrap.patch
# good luck finding this chip on Realtek website :/
#URL: http://www.realtek.com.tw/
URL: https://github.com/morrownr/8812au-20210820
@@ -70,6 +71,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
%build
%{expand:%build_kernel_packages}
diff --git a/drvwrap.patch b/drvwrap.patch
new file mode 100644
index 0000000..de2d170
--- /dev/null
+++ b/drvwrap.patch
@@ -0,0 +1,11 @@
+--- 8812au-20210820/os_dep/linux/usb_intf.c.orig 2025-06-14 16:30:21.000000000 +0200
++++ 8812au-20210820/os_dep/linux/usb_intf.c 2026-09-29 00:52:20.469136588 +0200
+@@ -346,7 +346,7 @@
+ .usbdrv.reset_resume = rtw_resume,
+ #endif
+
+-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0))
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0))
+ .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown,
+ #else
+ .usbdrv.driver.shutdown = rtw_dev_shutdown,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/4dc7ff45dd6c4bd0d4c7ca11101899a61475cbce
More information about the pld-cvs-commit
mailing list