linux-4.11.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Fix for 4.11, from debian
  2. ---
  3. src/wl/sys/wl_cfg80211_hybrid.c | 4 ++++
  4. src/wl/sys/wl_linux.c | 2 ++
  5. 2 files changed, 6 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:19:17.966109836 +0200
  8. +++ broadcom-wl-6.30.223.271/src/wl/sys/wl_cfg80211_hybrid.c 2020-01-11 01:25:39.080492424 +0200
  9. @@ -39,6 +39,10 @@
  10. #include <proto/802.11.h>
  11. #include <wl_cfg80211_hybrid.h>
  12. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
  13. +#include <linux/sched/signal.h>
  14. +#endif
  15. +
  16. #define EVENT_TYPE(e) dtoh32((e)->event_type)
  17. #define EVENT_FLAGS(e) dtoh16((e)->flags)
  18. #define EVENT_STATUS(e) dtoh32((e)->status)
  19. diff -Nurp broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_linux.c broadcom-wl-6.30.223.271/src/wl/sys/wl_linux.c
  20. --- broadcom-wl-6.30.223.271.orig/src/wl/sys/wl_linux.c 2020-01-11 01:12:32.543692150 +0200
  21. +++ broadcom-wl-6.30.223.271/src/wl/sys/wl_linux.c 2020-01-11 01:25:39.086492699 +0200
  22. @@ -2915,7 +2915,9 @@ wl_monitor(wl_info_t *wl, wl_rxsts_t *rx
  23. if (skb == NULL) return;
  24. skb->dev = wl->monitor_dev;
  25. +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
  26. skb->dev->last_rx = jiffies;
  27. +#endif
  28. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
  29. skb_reset_mac_header(skb);
  30. #else