]> git.pld-linux.org Git - packages/wl.git/blame - linux-5.1.patch
- fix building with kernel 5.1
[packages/wl.git] / linux-5.1.patch
CommitLineData
263b171f
JR
1--- wl-6.30.223.271/src/wl/sys/wl_cfg80211_hybrid.c~ 2019-05-07 19:17:44.000000000 +0200
2+++ wl-6.30.223.271/src/wl/sys/wl_cfg80211_hybrid.c 2019-05-07 19:19:00.311600063 +0200
3@@ -464,7 +464,11 @@
4 ifr.ifr_data = (caddr_t)&ioc;
5
6 fs = get_fs();
7+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
8+ set_fs(KERNEL_DS);
9+#else
10 set_fs(get_ds());
11+#endif
12 #if defined(WL_USE_NETDEV_OPS)
13 err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
14 #else
This page took 0.039825 seconds and 4 git commands to generate.