summaryrefslogtreecommitdiff
path: root/sys-kernel/broadcom-sta-dkms/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-07 15:29:02 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-07 15:29:02 +0100
commit2feda6d73f607acb2418f3c4410a5b34e706aa62 (patch)
treeda4750d3b6129d1e9266fd6c0b17f6e217c52fed /sys-kernel/broadcom-sta-dkms/files
parent45b8068c8aba95385d1d44b03e5812f46069f73a (diff)
sys-kernel/broadcom-sta-dkms : add kernel 5.1 compat patch
Diffstat (limited to 'sys-kernel/broadcom-sta-dkms/files')
-rw-r--r--sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch15
-rw-r--r--sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf8
2 files changed, 23 insertions, 0 deletions
diff --git a/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch
new file mode 100644
index 00000000..6be2c4f5
--- /dev/null
+++ b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-6.30.223.271-r4-linux-5.1.patch
@@ -0,0 +1,15 @@
+diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
+index cdf8c01..63b5650 100644
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
+@@ -52,6 +52,10 @@ u32 wl_dbg_level = WL_DBG_ERR | WL_DBG_INFO;
+ u32 wl_dbg_level = WL_DBG_ERR;
+ #endif
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
++#define get_ds() ((mm_segment_t) { (-1UL) })
++#endif
++
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+ static s32 wl_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev,
+ enum nl80211_iftype type, struct vif_params *params);
diff --git a/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf
new file mode 100644
index 00000000..8266df4b
--- /dev/null
+++ b/sys-kernel/broadcom-sta-dkms/files/broadcom-sta-dkms.conf
@@ -0,0 +1,8 @@
+blacklist b43
+blacklist b43legacy
+blacklist ssb
+blacklist bcm43xx
+blacklist brcm80211
+blacklist brcmfmac
+blacklist brcmsmac
+blacklist bcma