commit a6620a72e964ae9e6f65c5ad70ca99f51723a676
Author: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
Date: Sat Jun 1 21:38:36 2019 +0200
Fix patch for kernel >= 5.1.x - get_ds function removed even for WEXT
wl-kmod-015_kernel_5.1_get_ds_removed.patch | 15 +++++++++++++++
wl-kmod.spec | 5 ++++-
2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/wl-kmod-015_kernel_5.1_get_ds_removed.patch
b/wl-kmod-015_kernel_5.1_get_ds_removed.patch
index 39c6888..92947ab 100644
--- a/wl-kmod-015_kernel_5.1_get_ds_removed.patch
+++ b/wl-kmod-015_kernel_5.1_get_ds_removed.patch
@@ -13,3 +13,18 @@ diff -Naur
hybrid-v35_64-nodebug-pcoem-6_30_223_271.orig/src/wl/sys/wl_cfg80211_
#if defined(WL_USE_NETDEV_OPS)
err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
#else
+diff -Naur hybrid-v35_64-nodebug-pcoem-6_30_223_271.orig/src/wl/sys/wl_iw.c
hybrid-v35_64-nodebug-pcoem-6_30_223_271/src/wl/sys/wl_iw.c
+--- hybrid-v35_64-nodebug-pcoem-6_30_223_271.orig/src/wl/sys/wl_iw.c 2017-06-03
15:26:57.095475000 +0200
++++ hybrid-v35_64-nodebug-pcoem-6_30_223_271/src/wl/sys/wl_iw.c 2019-05-30
01:29:32.766280636 +0200
+@@ -117,7 +117,11 @@
+ ifr.ifr_data = (caddr_t) &ioc;
+
+ fs = get_fs();
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++ set_fs(KERNEL_DS);
++#else
+ set_fs(get_ds());
++#endif
+ #if defined(WL_USE_NETDEV_OPS)
+ ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
+ #else
diff --git a/wl-kmod.spec b/wl-kmod.spec
index ea853cf..079f609 100644
--- a/wl-kmod.spec
+++ b/wl-kmod.spec
@@ -8,7 +8,7 @@
Name: wl-kmod
Version: 6.30.223.271
-Release: 25%{?dist}
+Release: 26%{?dist}
Summary: Kernel module for Broadcom wireless devices
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -257,6 +257,9 @@ chmod 0755
$RPM_BUILD_ROOT%{kmodinstdir_prefix}*%{kmodinstdir_postfix}/* || :
rm -rf $RPM_BUILD_ROOT
%changelog
+* Sat Jun 01 2019 Nicolas Viéville <nicolas.vieville(a)uphf.fr> - 6.30.223.271-26
+- Fix patch for kernel >= 5.1.x - get_ds function removed even for WEXT
+
* Sun May 19 2019 Nicolas Viéville <nicolas.vieville(a)uphf.fr> - 6.30.223.271-25
- Add patch for f30 new wpa_supplicant - fix unsupported mesh point RHBZ#1703745
Show replies by date