28 lines
800 B
Diff
28 lines
800 B
Diff
diff -u sys0/wl_cfg80211_hybrid.c sys/wl_cfg80211_hybrid.c
|
|
--- a/src/wl/sys/wl_cfg80211_hybrid.c
|
|
+++ b/src/wl/sys/wl_cfg80211_hybrid.c
|
|
@@ -39,6 +39,10 @@
|
|
#include <proto/802.11.h>
|
|
#include <wl_cfg80211_hybrid.h>
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
|
+#include <linux/sched/signal.h>
|
|
+#endif
|
|
+
|
|
#define EVENT_TYPE(e) dtoh32((e)->event_type)
|
|
#define EVENT_FLAGS(e) dtoh16((e)->flags)
|
|
#define EVENT_STATUS(e) dtoh32((e)->status)
|
|
diff -u sys0/wl_linux.c sys/wl_linux.c
|
|
--- a/src/wl/sys/wl_linux.c
|
|
+++ b/src/wl/sys/wl_linux.c
|
|
@@ -2915,7 +2915,9 @@
|
|
if (skb == NULL) return;
|
|
|
|
skb->dev = wl->monitor_dev;
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
|
|
skb->dev->last_rx = jiffies;
|
|
+#endif
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
|
|
skb_reset_mac_header(skb);
|
|
#else
|