From b61d5666d38d0083bc45cef979c5f820aa1d2c07 Mon Sep 17 00:00:00 2001 From: Alberto Milone Date: Mon, 20 Mar 2017 10:42:51 +0100 Subject: [PATCH 1/1] Add support for Linux 4.11 Original author: Krzysztof Kolasa --- src/include/linuxver.h | 4 ++++ src/wl/sys/wl_linux.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/include/linuxver.h b/src/include/linuxver.h index b05bc32..775fcb6 100644 --- a/src/include/linuxver.h +++ b/src/include/linuxver.h @@ -144,7 +144,11 @@ typedef irqreturn_t(*FN_ISR) (int irq, void *dev_id, struct pt_regs *ptregs); #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) #include +#else +#include +#endif #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) diff --git a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c index 0d05100..e8dae45 100644 --- a/src/wl/sys/wl_linux.c +++ b/src/wl/sys/wl_linux.c @@ -2915,7 +2915,9 @@ wl_monitor(wl_info_t *wl, wl_rxsts_t *rxsts, void *p) 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 -- 2.7.4