README.md

broadcom-sta-patched #

Broadcom STA (wl) wireless driver patched for modern Linux kernels (6.17+).

Based on Broadcom's hybrid Linux driver v6.30.223.271 from the Ubuntu broadcom-sta-source package, with patches to fix compilation on kernels that removed legacy APIs.

Supported devices #

Any Broadcom WiFi chip supported by the original broadcom-sta driver, including the BCM4360 (14e4:43a0) commonly found in MacBook Pro models.

Full PCI ID list: 4311, 4312, 4313, 4315, 4727, 4328, 4329, 432a, 432b, 432c, 432d, 4365, 4353, 4357, 4358, 4359, 4331, 43a0

Quick install #

git clone https://github.com/mojzis/broadcom-sta-patched
cd broadcom-sta-patched
sudo ./install.sh

This installs via DKMS, so the driver auto-rebuilds on kernel updates.

Uninstall #

sudo ./uninstall.sh

What was patched #

The Ubuntu broadcom-sta-source (v6.30.223.271) fails to build on kernel 6.17+ due to removed/changed kernel APIs:

  1. Makefile: EXTRA_CFLAGS / EXTRA_LDFLAGS replaced with ccflags-y / ldflags-y (kbuild dropped the old names)
  2. wl_linux.c: from_timer() replaced with timer_container_of(), del_timer() replaced with timer_delete() (timer API cleanup)
  3. wl_cfg80211_hybrid.c: Updated set_wiphy_params, set_tx_power, and get_tx_power callback signatures to include the radio_idx parameter added in kernel 6.17

Manual build (without DKMS) #

make -C /lib/modules/$(uname -r)/build M=$(pwd)
sudo make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
sudo depmod -a
sudo modprobe wl

License #

The Broadcom STA driver is proprietary (MIXED/Proprietary license). The patches to the open-source glue code are provided as-is.