[packages/rtl8812au] - fix building with kernl 5.11 - rel 2

baggins baggins at pld-linux.org
Thu Feb 25 22:24:57 CET 2021


commit ab7adb6c7d58309e1691b260f2c5074d7e73f092
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Feb 25 22:24:22 2021 +0100

    - fix building with kernl 5.11
    - rel 2

 kernel-5.11.patch | 14 ++++++++++++++
 rtl8812au.spec    |  4 +++-
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index 51d93e7..53b80c1 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	5.9.3.2
 %define		snap	20201218
 %define		pname	rtl8812au
@@ -19,6 +19,7 @@ Group:		Base/Kernel
 Source0:	https://github.com/gordboy/%{pname}-%{basever}/archive/main/%{pname}-%{basever}-%{snap}.tar.gz
 # Source0-md5:	b2516283a54880feaec4f3142223d614
 Patch0:		designated_init.patch
+Patch1:		kernel-5.11.patch
 # good luck finding this chip on Realtek website :/
 #URL:		http://www.realtek.com.tw/
 URL:		https://github.com/gordboy/rtl8812au-5.9.3.2
@@ -64,6 +65,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
 %prep
 %setup -q -n %{pname}-%{basever}-main
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{expand:%build_kernel_packages}
diff --git a/kernel-5.11.patch b/kernel-5.11.patch
new file mode 100644
index 0000000..73fcba8
--- /dev/null
+++ b/kernel-5.11.patch
@@ -0,0 +1,14 @@
+--- rtl8812au-5.9.3.2-main/os_dep/linux/ioctl_cfg80211.c.orig	2020-12-14 10:07:30.000000000 +0100
++++ rtl8812au-5.9.3.2-main/os_dep/linux/ioctl_cfg80211.c	2021-02-25 22:21:04.529544070 +0100
+@@ -456,7 +456,11 @@
+ 
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))
+ 	if (started) {
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0))
++		cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, false);
++#else
+ 		cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0);
++#endif
+ 		goto exit;
+ 	}
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/ab7adb6c7d58309e1691b260f2c5074d7e73f092



More information about the pld-cvs-commit mailing list