]> git.pld-linux.org Git - packages/wl.git/commitdiff
- fix building with kernel 5.1 auto/th/wl-6.30.223.271-9
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 7 May 2019 17:21:04 +0000 (19:21 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 7 May 2019 17:21:04 +0000 (19:21 +0200)
- rel 9

linux-5.1.patch [new file with mode: 0644]
wl.spec

diff --git a/linux-5.1.patch b/linux-5.1.patch
new file mode 100644 (file)
index 0000000..0e5436c
--- /dev/null
@@ -0,0 +1,14 @@
+--- wl-6.30.223.271/src/wl/sys/wl_cfg80211_hybrid.c~   2019-05-07 19:17:44.000000000 +0200
++++ wl-6.30.223.271/src/wl/sys/wl_cfg80211_hybrid.c    2019-05-07 19:19:00.311600063 +0200
+@@ -464,7 +464,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)
+       err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
+ #else
diff --git a/wl.spec b/wl.spec
index dd2dc746f4559029ce8d01b40b79acd9fcd4404f..80add87a5e14997d75947a7df630d920ee5cb173 100644 (file)
--- a/wl.spec
+++ b/wl.spec
@@ -18,7 +18,7 @@ exit 1
 
 %define                _duplicate_files_terminate_build        0
 
-%define                rel     8
+%define                rel     9
 %define                pname   wl
 %define                file_ver        %(echo %{version} | tr . _)
 Summary:       Broadcom 802.11 a/b/g/n hybrid Linux networking device driver
@@ -44,6 +44,7 @@ Patch5:               17-fix-kernel-warnings.patch
 Patch6:                linux-4.11.patch
 Patch7:                linux-4.12.patch
 Patch8:                008-linux415.patch
+Patch9:                linux-5.1.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}}
@@ -133,6 +134,7 @@ EOF\
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 mkdir wl
 mv lib src Makefile wl/
This page took 0.134854 seconds and 4 git commands to generate.