]> git.pld-linux.org Git - packages/rtl8812au.git/commitdiff
- fix building with kernl 5.11 auto/th/rtl8812au-5.9.3.2.20201218-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 25 Feb 2021 21:24:22 +0000 (22:24 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 25 Feb 2021 21:24:22 +0000 (22:24 +0100)
- rel 2

kernel-5.11.patch [new file with mode: 0644]
rtl8812au.spec

diff --git a/kernel-5.11.patch b/kernel-5.11.patch
new file mode 100644 (file)
index 0000000..73fcba8
--- /dev/null
@@ -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
index 51d93e7e27a6c2af0c506c23fafda800de1a1e5d..53b80c1d7cabbe7d008b43f1c40770afd6619bd0 100644 (file)
@@ -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}
This page took 0.159847 seconds and 4 git commands to generate.