Skip to content

Instantly share code, notes, and snippets.

@vejeta
Last active June 10, 2025 16:23
Show Gist options
  • Save vejeta/a44e792f37811f7f6e47445b03760d87 to your computer and use it in GitHub Desktop.
Save vejeta/a44e792f37811f7f6e47445b03760d87 to your computer and use it in GitHub Desktop.
Tentative fix for broadcom-sta-dkms 6.30.223.271-24 module for Linux 6.12.1
--- broadcom-sta-6.30.223.271/src/wl/sys/wl_linux.c
+++ b/src/wl/sys/wl_linux.c
59c59
< #include <asm/unaligned.h>
---
> #include <linux/unaligned.h>
@vejeta
Copy link
Author

vejeta commented Dec 1, 2024

The fix is applying this patch:
https://gist.github.com/vejeta/a44e792f37811f7f6e47445b03760d87
by copying it to: /usr/src/broadcom-sta-6.30.223.271/patches and
adding the file name "broadcom-sta-fix-linux-6.12.1.patch"
to line 7 in /usr/src/broadcom-sta-6.30.223.271/dkms.conf
like:
PATCH=(broadcom-sta-fix-linux-6.12.1.patch)

@raekuul
Copy link

raekuul commented Dec 28, 2024

Works for me after applying the patch, though I also needed a PATCH_MATCH directive (so at to not attempt to patch on 6.11.10)

@vejeta
Copy link
Author

vejeta commented Dec 28, 2024

@raekuul Thanks for the feedback.

BTW, That is interesting, do you have an example with PATCH_MATCH?

@raekuul
Copy link

raekuul commented Dec 28, 2024

in dkms.conf:

PACKAGE_VERSION="6.30.223.271"
MAKE[0]="make KVER=$kernelver"
BUILT_MODULE_NAME[0]="wl"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
PATCH=(broadcom-sta-fix-linux-6.12.1.patch)
PATCH_MATCH="^(6\.12\.[0-9])"

@victoitor
Copy link

Just tried it with the following and it worked. Currently kernel 6.12.27.

PATCH_MATCH="^(6\.12\.[0-9]+)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment