aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2018-01-13 18:44:04 +0100
committerJonas Gorski <jonas.gorski@gmail.com>2018-02-11 23:15:05 +0100
commit592472f60f7b79e824ce91a57b52976c5f174f28 (patch)
tree24e7db0df0a5740619c593b2ad9cd39af0b79a60
parentb0c5e8b9274188bf3bb238e013e324542ee747c4 (diff)
downloadupstream-592472f60f7b79e824ce91a57b52976c5f174f28.tar.gz
upstream-592472f60f7b79e824ce91a57b52976c5f174f28.tar.bz2
upstream-592472f60f7b79e824ce91a57b52976c5f174f28.zip
broadcom-wl: fix compilation with 4.14
The last_rx field was removed from net_device. Since the field wasn't used by the generic subsystem, and the driver only writes to it, just remove the usage. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
-rw-r--r--package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch b/package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch
new file mode 100644
index 0000000000..9f4b0b01b3
--- /dev/null
+++ b/package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch
@@ -0,0 +1,10 @@
+--- broadcom-wl-5.10.56.27.3/driver/wl_linux.c.orig 2018-01-13 18:25:14.944667645 +0100
++++ broadcom-wl-5.10.56.27.3/driver/wl_linux.c 2018-01-13 18:25:25.836667888 +0100
+@@ -2762,7 +2762,6 @@
+ bcopy(oskb->data + D11_PHY_HDR_LEN, pdata, oskb->len - D11_PHY_HDR_LEN);
+
+ skb->dev = wl->monitor;
+- skb->dev->last_rx = jiffies;
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
+ skb_reset_mac_header(skb);
+ #else