--- /dev/null
+--- wl-6.30.223.271/wl/src/wl/sys/wl_linux.c~ 2020-10-21 08:40:00.000000000 +0200
++++ wl-6.30.223.271/wl/src/wl/sys/wl_linux.c 2020-10-21 08:41:58.566248630 +0200
+@@ -1662,7 +1662,11 @@
+ goto done2;
+ }
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
++ if (uaccess_kernel())
++#else
+ if (segment_eq(get_fs(), KERNEL_DS))
++#endif
+ buf = ioc.buf;
+
+ else if (ioc.buf) {
%define _duplicate_files_terminate_build 0
-%define rel 10
+%define rel 11
%define pname wl
%define file_ver %(echo %{version} | tr . _)
Summary: Broadcom 802.11 a/b/g/n hybrid Linux networking device driver
Patch8: 008-linux415.patch
Patch9: linux-5.1.patch
Patch10: linux-5.6.patch
+Patch11: linux-5.9.patch
URL: http://www.broadcom.com/support/802.11
BuildRequires: rpmbuild(macros) >= 1.701
%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
%patch8 -p1
%patch9 -p1
%patch10 -p2
+%patch11 -p2
mkdir wl
mv lib src Makefile wl/