linux-5.1.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Fix for 5.1
  2. ---
  3. src/wl/sys/wl_cfg80211_hybrid.c | 4 ++++
  4. src/wl/sys/wl_iw.c | 4 ++++
  5. 2 files changed, 8 insertions(+)
  6. diff -Nurp broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_cfg80211_hybrid.c broadcom-wl-6.30.223.271/src/wl/sys/wl_cfg80211_hybrid.c
  7. --- broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_cfg80211_hybrid.c 2020-01-11 01:34:37.953072128 +0200
  8. +++ broadcom-wl-6.30.223.271/src/wl/sys/wl_cfg80211_hybrid.c 2020-01-11 01:46:06.313501453 +0200
  9. @@ -458,7 +458,11 @@ wl_dev_ioctl(struct net_device *dev, u32
  10. ifr.ifr_data = (caddr_t)&ioc;
  11. fs = get_fs();
  12. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
  13. + set_fs(KERNEL_DS);
  14. +#else
  15. set_fs(get_ds());
  16. +#endif
  17. #if defined(WL_USE_NETDEV_OPS)
  18. err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
  19. #else
  20. diff -Nurp broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_iw.c broadcom-wl-6.30.223.271/src/wl/sys/wl_iw.c
  21. --- broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_iw.c 2015-09-19 01:47:30.000000000 +0300
  22. +++ broadcom-wl-6.30.223.271/src/wl/sys/wl_iw.c 2020-01-11 01:46:06.314501499 +0200
  23. @@ -117,7 +117,11 @@ dev_wlc_ioctl(
  24. ifr.ifr_data = (caddr_t) &ioc;
  25. fs = get_fs();
  26. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
  27. + set_fs(KERNEL_DS);
  28. +#else
  29. set_fs(get_ds());
  30. +#endif
  31. #if defined(WL_USE_NETDEV_OPS)
  32. ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
  33. #else