Package Details: broadcom-wl 6.30.223.271-5

Git Clone URL: https://aur.archlinux.org/broadcom-wl.git (read-only)
Package Base: broadcom-wl
Description: Broadcom 802.11abgn hybrid Linux networking device driver
Upstream URL: https://www.broadcom.com/support/802.11
Keywords: network wireless
Licenses: custom
Submitter: kyrias
Maintainer: Raimar
Last Packager: Raimar
Votes: 64
Popularity: 1.949262
First Submitted: 2015-08-10 02:51
Last Updated: 2017-05-03 20:15

Latest Comments

Raimar commented on 2017-05-03 20:18

Added linux411.patch from wichmannpas to be compatible with kernel >= 4.11.0.

wichmannpas commented on 2017-05-02 12:20

I have created a patch for the broadcom-wl module to build with kernel version 4.11 (which can be used for broadcom-wl-dkms[0] as well).

As send_sig and allow_signal now need an include of linux/sched/signal.h, the patch does not build with older kernel versions (where this include does not exist).

$ cat linux411.patch
--- srca/src/wl/sys/wl_cfg80211_hybrid.c 2017-05-02 12:27:40.253557540 +0200
+++ srcg/src/wl/sys/wl_cfg80211_hybrid.c 2017-05-02 13:41:58.252225082 +0200
@@ -30,6 +30,7 @@
#include <linux/kthread.h>
#include <linux/netdevice.h>
#include <linux/ieee80211.h>
+#include <linux/sched/signal.h>
#include <net/cfg80211.h>
#include <linux/nl80211.h>
#include <net/rtnetlink.h>
--- srca/src/wl/sys/wl_linux.c 2017-05-02 12:57:48.890791119 +0200
+++ srcg/src/wl/sys/wl_linux.c 2017-05-02 13:41:53.655498874 +0200
@@ -117,6 +117,7 @@

typedef struct priv_link {
wl_if_t *wlif;
+ unsigned long last_rx;
} priv_link_t;

#define WL_DEV_IF(dev) ((wl_if_t*)((priv_link_t*)DEV_PRIV(dev))->wlif)
@@ -2450,6 +2451,7 @@
{
struct sk_buff *oskb = (struct sk_buff *)p;
struct sk_buff *skb;
+ priv_link_t *priv_link;
uchar *pdata;
uint len;

@@ -2916,7 +2918,11 @@
if (skb == NULL) return;

skb->dev = wl->monitor_dev;
- skb->dev->last_rx = jiffies;
+
+ priv_link = MALLOC(wl->osh, sizeof(priv_link_t));
+ priv_link = netdev_priv(skb->dev);
+
+ priv_link->last_rx = jiffies;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
skb_reset_mac_header(skb);
#else

[0] https://www.archlinux.org/packages/community/x86_64/broadcom-wl-dkms/

jmartl109 commented on 2017-04-17 23:09

Doesn't build on 4.11 (I tried with 4.11-rc2 but assume later rc's don't help):

./arch/x86/include/asm/compat.h: In function ‘arch_compat_alloc_user_space’:
./include/linux/thread_info.h:75:22: warning: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Wint-conversion]
test_ti_thread_flag(current_thread_info(), flag)
^
./arch/x86/include/asm/compat.h:309:6: note: in expansion of macro ‘test_thread_flag’
if (test_thread_flag(TIF_IA32)) {
^~~~~~~~~~~~~~~~
./include/linux/thread_info.h:61:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:295: <broadcom-wl dir>/src/src/shared/linux_osl.o] Error 1
make[1]: *** [Makefile:1492: _module_<broadcom-wl dir>/src] Error 2
make[1]: Leaving directory '<kernel source dir>'
make: *** [Makefile:159: all] Error 2

Does anyone know who to contact about getting this patched for the new kernel?

Raimar commented on 2017-04-01 20:55

@MrR060t_104: Currently kernel 4.10.6 works. Try to rebuild this package. As mentioned below using brodcom-wl-dkms is an alternative for an automatic rebuild process.

Raimar commented on 2017-04-01 20:15

@hobarrera: Technically it should be possible to rebuild this package automatically, after the linux kernel has been installed or updated.
In more detail: A solution using the current pacman hook can call a script to build this AUR package, This should look like the example shown at https://www.reddit.com/r/archlinux/comments/55p7mw/force_pacman_to_upgrade_some_packages_through/
To be independend from the concrete used AUR helper tool the PKGBUILD file could be downloaded with wget, build with makepkg and installed with pacman. I wonder, if there is a more elegant way to avoid calling pacman from pacman.

MrR060t_104 commented on 2017-04-01 14:33

Your package seems broken under linux-4.10.

==> Starting prepare()...
patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 207 (offset 2 lines).
patching file src/wl/sys/wl_linux.c
patching file src/wl/sys/wl_cfg80211_hybrid.c
patching file src/wl/sys/wl_cfg80211_hybrid.c
==> Starting build()...
make: Entering directory '/usr/lib/modules/4.10.1-1-ARCH/build'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory '/usr/lib/modules/4.10.1-1-ARCH/build'
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build broadcom-wl.

Raimar commented on 2017-02-19 14:47

Flag "out of date" removed, because everything works with kernel 4.9.8. If not, remember to rebuild package.

alex.shpilkin commented on 2017-02-01 13:29

@whereiswaldon @hobarrera Note that it is possible to have modules rebuild automatically on kernel upgrade using DKMS. It looks like the broadcom-wl-dkms package is maintained independently from this one, though.

whereswaldon commented on 2017-02-01 04:21

@hobarrera @graysky
Thanks! I rebuilt and everything worked wonderfully. I'm new to manual package management. My previous distro's package managers did literally everything for me. Sorry for my ignorance!

hobarrera commented on 2017-01-31 23:11

@whereswaldon
You need to rebuild it after every kernel upgrade. As an alternative, you can use broadcom-wl.

@kyrias
Can't we use the new pacman hooks to rebuild this on kernel upgrade?

All comments