--- /dev/null
+--- wl-6.30.223.271/wl/src/wl/sys/wl_linux.c~ 2022-04-02 21:59:42.000000000 +0200
++++ wl-6.30.223.271/wl/src/wl/sys/wl_linux.c 2022-04-02 22:09:00.597044484 +0200
+@@ -3313,7 +3313,11 @@
+ static ssize_t
+ wl_proc_read(struct file *filp, char __user *buffer, size_t length, loff_t *offp)
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
+ wl_info_t * wl = PDE_DATA(file_inode(filp));
++#else
++ wl_info_t * wl = pde_data(file_inode(filp));
++#endif
+ #endif
+ int bcmerror, len;
+ int to_user = 0;
+@@ -3370,7 +3374,11 @@
+ static ssize_t
+ wl_proc_write(struct file *filp, const char __user *buff, size_t length, loff_t *offp)
+ {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
+ wl_info_t * wl = PDE_DATA(file_inode(filp));
++#else
++ wl_info_t * wl = pde_data(file_inode(filp));
++#endif
+ #endif
+ int from_user = 0;
+ int bcmerror;
%define _duplicate_files_terminate_build 0
-%define rel 14
+%define rel 15
%define pname wl
%define file_ver %(echo %{version} | tr . _)
Summary: Broadcom 802.11 a/b/g/n hybrid Linux networking device driver
Patch9: kernel-4.14.patch
Patch10: linux-5.6.patch
Patch11: kernel-5.10.patch
+Patch12: kernel-5.17.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}}
%patch9 -p1
%patch10 -p2
%patch11 -p1
+%patch12 -p2
mkdir wl
mv lib src Makefile wl/