broadcom-wl-dkms: fix downloads; kernel 5.1 patch

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-06-09 00:59:09 +02:00
parent 410fc03a6a
commit 7564fdf947
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8
2 changed files with 29 additions and 3 deletions

View file

@ -0,0 +1,25 @@
--- src/wl/sys/wl_cfg80211_hybrid.c
+++ src/wl/sys/wl_cfg80211_hybrid.c
@@ -43,6 +43,9 @@
#define EVENT_FLAGS(e) dtoh16((e)->flags)
#define EVENT_STATUS(e) dtoh32((e)->status)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
+#define get_ds() (KERNEL_DS)
+#endif
#ifdef BCMDBG
u32 wl_dbg_level = WL_DBG_ERR | WL_DBG_INFO;
#else
--- src/wl/sys/wl_iw.c
+++ src/wl/sys/wl_iw.c
@@ -61,6 +61,9 @@ typedef struct priv_link {
wl_iw_t *wliw;
} priv_link_t;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
+#define get_ds() (KERNEL_DS)
+#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24))
#define WL_DEV_LINK(dev) (priv_link_t*)(dev->priv)
#else

View file

@ -2,7 +2,7 @@
pkgname=broadcom-wl-dkms
version=6.30.223.271
revision=7
revision=8
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="Proprietary Broadcom license"
homepage="http://broadcom.com"
@ -17,11 +17,12 @@ depends="dkms"
case "$XBPS_TARGET_MACHINE" in
i686*)
distfiles="http://www.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35-nodebug-pcoem-${version//./_}.tar.gz"
distfiles="https://www.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35-nodebug-pcoem-${version//./_}.tar.gz"
checksum=4f8b70b293ac8cc5c70e571ad5d1878d0f29d133a46fe7869868d9c19b5058cd
;;
x86_64*)
distfiles="http://www.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-${version//./_}.tar.gz"
distfiles="https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-${version//./_}.tar.gz"
checksum=5f79774d5beec8f7636b59c0fb07a03108eef1e3fd3245638b20858c714144be
;;
esac