summaryrefslogtreecommitdiff
path: root/sys-kernel/bcmwl-dkms/files/kernel-5.17.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-13 22:54:03 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-13 22:54:03 +0100
commitcc9132cbbfb116ec951c9b88b95b20d464af8488 (patch)
treef8d616f3b4a801a05b7cfe77e8a7b5b4fd85baf5 /sys-kernel/bcmwl-dkms/files/kernel-5.17.patch
parent216df9fd06cfbaecc3e3109909151ec556ab5d50 (diff)
sys-kernel/bcmwl-dkms : revision bump
Diffstat (limited to 'sys-kernel/bcmwl-dkms/files/kernel-5.17.patch')
-rw-r--r--sys-kernel/bcmwl-dkms/files/kernel-5.17.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-kernel/bcmwl-dkms/files/kernel-5.17.patch b/sys-kernel/bcmwl-dkms/files/kernel-5.17.patch
new file mode 100644
index 00000000..9352b3ac
--- /dev/null
+++ b/sys-kernel/bcmwl-dkms/files/kernel-5.17.patch
@@ -0,0 +1,29 @@
+diff -Nur a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c
+--- a/src/wl/sys/wl_linux.c 2022-10-13 22:44:30.922488855 +0100
++++ b/src/wl/sys/wl_linux.c 2022-10-13 22:48:36.115511672 +0100
+@@ -3307,8 +3307,12 @@
+ 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;
+ char tmp[8];
+@@ -3364,8 +3368,12 @@
+ 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(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 from_user = 0;
+ int bcmerror;
+