diff options
author | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-04-27 23:12:05 +0200 |
---|---|---|
committer | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-04-27 23:12:05 +0200 |
commit | e4e108c834bb19a76bb9b4ae0c8c585785fb6675 (patch) | |
tree | ebf18c1e3727da6af051358f5d297d24fafba4db /aports/broadcom-wl/006-linux411.patch | |
parent | 1ecfff829f55162ba6414e34f3110517c3061b90 (diff) | |
download | freebsd-wifibox-alpine-e4e108c834bb19a76bb9b4ae0c8c585785fb6675.zip |
Add optional package for the Broadcom STA (`wl`) driver.
Ported from: Arch Linux
Diffstat (limited to 'aports/broadcom-wl/006-linux411.patch')
-rw-r--r-- | aports/broadcom-wl/006-linux411.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/aports/broadcom-wl/006-linux411.patch b/aports/broadcom-wl/006-linux411.patch new file mode 100644 index 0000000..7a2e8c0 --- /dev/null +++ b/aports/broadcom-wl/006-linux411.patch @@ -0,0 +1,27 @@ +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 |