--- /dev/null
+--- 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
# 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
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
%prep
%setup -q -n %{pname}-%{basever}-main
%patch0 -p1
+%patch1 -p1
%build
%{expand:%build_kernel_packages}