Last active
June 10, 2025 16:23
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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> |
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)
@raekuul Thanks for the feedback.
BTW, That is interesting, do you have an example with PATCH_MATCH?
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])"
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
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)