18-linux411.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Description: Compile fix with kernel 4.11
  2. I use the attached patch to get this module compiled with 4.11. Works
  3. for me since last sunday.
  4. Apparently https://aur.archlinux.org/cgit/aur.git/tree/linux411.patch?h=broadcom-wl
  5. has come with a different patch for the removed last_rx field in
  6. netdevice. But judging the commit log
  7. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/include/linux/netdevice.h?id=4a7c972644c1151f6dd34ff4b5f7eacb239e22ee
  8. and the fact that last_rx isn't used elsewhere I came up with just
  9. ifdef it out.
  10. Author: koos vriezen <koos.vriezen@gmail.com>
  11. Bug-Debian: http://bugs.debian.org/861807
  12. Origin: http://bugs.debian.org/861807
  13. Forwarded: no
  14. Reviewed-By: Eduard Bloch <blade@debian.org>
  15. Last-Update: 2017-05-04
  16. --- a/amd64/src/wl/sys/wl_linux.c 2016-12-20 23:11:53.000000000 +0100
  17. +++ b/amd64/src/wl/sys/wl_linux.c 2017-05-01 18:28:01.796506879 +0200
  18. @@ -2912,7 +2912,9 @@ wl_monitor(wl_info_t *wl, wl_rxsts_t *rx
  19. if (skb == NULL) return;
  20. skb->dev = wl->monitor_dev;
  21. +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
  22. skb->dev->last_rx = jiffies;
  23. +#endif
  24. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
  25. skb_reset_mac_header(skb);
  26. #else
  27. --- a/amd64/src/wl/sys/wl_cfg80211_hybrid.c 2016-12-20 23:11:53.000000000 +0100
  28. +++ b/amd64/src/wl/sys/wl_cfg80211_hybrid.c 2017-05-04 11:02:00.528227486 +0200
  29. @@ -30,6 +30,9 @@
  30. #include <linux/kthread.h>
  31. #include <linux/netdevice.h>
  32. #include <linux/ieee80211.h>
  33. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
  34. +#include <linux/sched/signal.h>
  35. +#endif
  36. #include <net/cfg80211.h>
  37. #include <linux/nl80211.h>
  38. #include <net/rtnetlink.h>