[packages/rtl8812au] - fix building for kernel 6.13
baggins
baggins at pld-linux.org
Thu Jan 23 01:47:20 CET 2025
commit 3d8d1ed6455cec77138f89a5d7ddf83f3f90d511
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Jan 23 00:51:21 2025 +0100
- fix building for kernel 6.13
kernel-6.13.patch | 27 +++++++++++++++++++++++++++
rtl8812au.spec | 6 ++++--
2 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index 63bcff2..a3b5bfb 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 1
+%define rel 2
%define basever 20210820
%define snap 20240527
%define pname rtl8812au
@@ -21,6 +21,7 @@ Group: Base/Kernel
Source0: %{pname}-%{version}.tar.xz
# Source0-md5: a4986d1bd51a7447dc240eb4eefaad27
Patch0: no-arch-override.patch
+Patch1: kernel-6.13.patch
# good luck finding this chip on Realtek website :/
#URL: http://www.realtek.com.tw/
URL: https://github.com/morrownr/8812au
@@ -65,7 +66,8 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
%prep
%setup -q -n 8812au-%{basever}
-%patch0 -p1
+%patch -P 0 -p1
+%patch -P 1 -p1
%build
%{expand:%build_kernel_packages}
diff --git a/kernel-6.13.patch b/kernel-6.13.patch
new file mode 100644
index 0000000..6111106
--- /dev/null
+++ b/kernel-6.13.patch
@@ -0,0 +1,27 @@
+--- 8812au-20210820/os_dep/linux/os_intfs.c~ 2024-05-27 23:46:08.000000000 +0200
++++ 8812au-20210820/os_dep/linux/os_intfs.c 2025-01-23 00:43:01.529998643 +0100
+@@ -32,8 +32,12 @@
+ * You can modify or add flags in the fs/Makefile.
+ */
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)
++ MODULE_IMPORT_NS("VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver");
++#else
+ MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
+ #endif
++#endif
+
+ /* module param defaults */
+ int rtw_chip_version = 0x00;
+--- 8812au-20210820/os_dep/linux/ioctl_cfg80211.c~ 2024-05-27 23:46:08.000000000 +0200
++++ 8812au-20210820/os_dep/linux/ioctl_cfg80211.c 2025-01-23 00:45:49.173331951 +0100
+@@ -6901,6 +6901,9 @@
+
+ static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
++ , struct net_device *dev
++#endif
+ , struct cfg80211_chan_def *chandef
+ #else
+ , struct ieee80211_channel *chan
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/3d8d1ed6455cec77138f89a5d7ddf83f3f90d511
More information about the pld-cvs-commit
mailing list