network/broadcom-sta: Patched to fix build on newer kernels

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Benjamin Trigona-Harany 2012-09-28 23:41:47 -05:00 committed by Robby Workman
parent 0dbc3a5839
commit 732050978d
2 changed files with 24 additions and 1 deletions

View file

@ -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>

View file

@ -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