006-linux411.patch 800 B

12345678910111213141516171819202122232425262728
  1. diff -u sys0/wl_cfg80211_hybrid.c sys/wl_cfg80211_hybrid.c
  2. --- a/src/wl/sys/wl_cfg80211_hybrid.c
  3. +++ b/src/wl/sys/wl_cfg80211_hybrid.c
  4. @@ -39,6 +39,10 @@
  5. #include <proto/802.11.h>
  6. #include <wl_cfg80211_hybrid.h>
  7. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
  8. +#include <linux/sched/signal.h>
  9. +#endif
  10. +
  11. #define EVENT_TYPE(e) dtoh32((e)->event_type)
  12. #define EVENT_FLAGS(e) dtoh16((e)->flags)
  13. #define EVENT_STATUS(e) dtoh32((e)->status)
  14. diff -u sys0/wl_linux.c sys/wl_linux.c
  15. --- a/src/wl/sys/wl_linux.c
  16. +++ b/src/wl/sys/wl_linux.c
  17. @@ -2915,7 +2915,9 @@
  18. if (skb == NULL) return;
  19. skb->dev = wl->monitor_dev;
  20. +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
  21. skb->dev->last_rx = jiffies;
  22. +#endif
  23. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
  24. skb_reset_mac_header(skb);
  25. #else