summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2012-09-28 23:41:47 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-28 23:41:47 -0500
commit732050978d4840205fac8ac4369c589f28b9775f (patch)
tree0b7a29e325ce320e968e85f52e8e13ed4962907a
parent0dbc3a5839a39591ed966c24433b7827d3e19e15 (diff)
downloadslackbuilds-732050978d4840205fac8ac4369c589f28b9775f.tar.gz
network/broadcom-sta: Patched to fix build on newer kernels
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--network/broadcom-sta/bc_wl_abiupdate.patch21
-rw-r--r--network/broadcom-sta/broadcom-sta.SlackBuild4
2 files changed, 24 insertions, 1 deletions
diff --git a/network/broadcom-sta/bc_wl_abiupdate.patch b/network/broadcom-sta/bc_wl_abiupdate.patch
new file mode 100644
index 0000000000..0e6e639b02
--- /dev/null
+++ b/network/broadcom-sta/bc_wl_abiupdate.patch
@@ -0,0 +1,21 @@
+--- a/src/wl/sys/wl_linux.c 2009-06-19 12:30:52.000000000 -0500
++++ b/src/wl/sys/wl_linux.c 2011-01-11 22:21:10.623044411 -0600
+
+332c332
+< .ndo_set_multicast_list = wl_set_multicast_list,
+---
+> .ndo_set_rx_mode = wl_set_multicast_list,
+
+
+--- a/src/wl/sys/wl_linux.c
++++ b/src/wl/sys/wl_linux.c
+@@ -40,7 +40,9 @@
+ #include <linux/pci_ids.h>
+ #define WLC_MAXBSSCFG 1
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)
+ #include <asm/system.h>
++#endif
+ #include <asm/io.h>
+ #include <asm/irq.h>
+ #include <asm/pgtable.h>
diff --git a/network/broadcom-sta/broadcom-sta.SlackBuild b/network/broadcom-sta/broadcom-sta.SlackBuild
index 7cc7bb0235..161d0c57ef 100644
--- a/network/broadcom-sta/broadcom-sta.SlackBuild
+++ b/network/broadcom-sta/broadcom-sta.SlackBuild
@@ -5,7 +5,7 @@
PRGNAM=broadcom-sta
VERSION=5.100.82.112
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-$(uname -r)}
@@ -42,6 +42,8 @@ mkdir -p $TMP $WORKDIR $PKG $OUTPUT
cd $WORKDIR
tar xvf $CWD/hybrid-portsrc_${MY_ARCH}-v$(printf $VERSION|tr . _).tar.gz
+patch -p1 < $CWD/bc_wl_abiupdate.patch
+
# Build the module
make -C /lib/modules/$KERNEL/build M=$WORKDIR clean
make -C /lib/modules/$KERNEL/build M=$WORKDIR