Package: broadcom-sta-dkms
Version: 6.30.223.271-19

This is basically a duplicate of bug #1012481. It's been fixed with the Arch Linux patch in 6.30.223.271-20, but the new version is still in sid for another 7 days at most from June 13th, 2022. While I have not used the sid package itself, I've applied the underlying Arch Linux patch that fixed it in sid (see later in e-mail), and it's working fine. I thing the newer version should be migrated to testing ASAP.

While waiting for the patched package to move into testing, I just applied the Arch Linux patch as a work-around to get the driver to work. For this, I did it again before upgrading to 5.18, and I had no issues with the patch applied.


I'm also on amd64 Debian Bookworm, with dkms version 3.0.3-2, wireless-tools version 30~pre9-13.1, and the i386 repositories enabled for a few things. I was also on 5.17.0-1-amd64 before applying the Arch patch and upgrading to 5.18.0-1-amd64.

The most convenient way to immediately fix it on a Debian testing system is to just download the sid .deb directly from packages.debian.org and install it (I see no clear dependency issues), but it's also possible to directly apply the Arch Linux patch.

Here's the process I used for applying the Arch Linux patch:

1. Download the patch file to somewhere convenient.
Here's the link:
https://github.com/archlinux/svntogit-community/blob/packages/broadcom-wl-dkms/trunk/013-linux518.patch
Honestly, I'd recommend reading the patch just to be careful.

2. Then, I'd recommend backing up the original file before making any changes. I did the following to make a copy called linux_osl.c.backup: sudo cp /usr/src/broadcom-sta-6.30.223.271/src/shared/linux_osl.c /usr/src/broadcom-sta-6.30.223.271/src/shared/linux_osl.c.backup

Note that I used sudo because I'm not doing this as root. If you are root, you don't need to include sudo.

3. To apply, run:
sudo patch /usr/src/broadcom-sta-6.30.223.271/src/shared/linux_osl.c /path/to/013-linux518.patch
(replacing /path/to/013-linux518.path with where you downloaded the file.)

This replaces some bits of the C code, which should make the file compile properly when running apt --fix-broken install or the like.

The above worked fine for me.

Usually, after a little bit, the patch will be added to the driver, a package manager update will be put out, and you shouldn't have to worry about anything for a while.

In general, when running Debian with a Broadcom network card that requires this package, I read the output of "apt list --upgradable" to make sure there is no kernel update before I upgrade. If there is a kernel update, I google if there are any problems with broadcom-sta-dkms and the kernel version to be installed. If there are, I just check to see if that Github repository has a patch and if so apply it before upgrading.

Reply via email to