[packages/rtl8812au] - rel 3,fix building for kernel 6.14
baggins
baggins at pld-linux.org
Sat Apr 19 02:03:25 CEST 2025
commit be4ace3a399e087a1eb4af5aba8554617bc94e48
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Apr 19 02:09:13 2025 +0200
- rel 3,fix building for kernel 6.14
kernel-6.14.patch | 12 ++++++++++++
rtl8812au.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index a3b5bfb..757bd47 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 2
+%define rel 3
%define basever 20210820
%define snap 20240527
%define pname rtl8812au
@@ -22,6 +22,7 @@ Source0: %{pname}-%{version}.tar.xz
# Source0-md5: a4986d1bd51a7447dc240eb4eefaad27
Patch0: no-arch-override.patch
Patch1: kernel-6.13.patch
+Patch2: kernel-6.14.patch
# good luck finding this chip on Realtek website :/
#URL: http://www.realtek.com.tw/
URL: https://github.com/morrownr/8812au
@@ -68,6 +69,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
%setup -q -n 8812au-%{basever}
%patch -P 0 -p1
%patch -P 1 -p1
+%patch -P 2 -p1
%build
%{expand:%build_kernel_packages}
diff --git a/kernel-6.14.patch b/kernel-6.14.patch
new file mode 100644
index 0000000..83d0f3f
--- /dev/null
+++ b/kernel-6.14.patch
@@ -0,0 +1,12 @@
+--- 8812au-20210820/os_dep/linux/ioctl_cfg80211.c~ 2025-04-19 02:03:37.000000000 +0200
++++ 8812au-20210820/os_dep/linux/ioctl_cfg80211.c 2025-04-19 02:07:48.229999557 +0200
+@@ -4650,6 +4650,9 @@
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
+ struct wireless_dev *wdev,
+ #endif
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
++ unsigned int link_id,
++#endif
+ int *dbm)
+ {
+ struct dvobj_priv *dvobj = wiphy_to_dvobj(wiphy);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/be4ace3a399e087a1eb4af5aba8554617bc94e48
More information about the pld-cvs-commit
mailing list