Skip to content

Add broadcom-wl driver for older intel macs#14389

Open
discretizer wants to merge 3 commits into
batocera-linux:masterfrom
discretizer:macmini-wifi
Open

Add broadcom-wl driver for older intel macs#14389
discretizer wants to merge 3 commits into
batocera-linux:masterfrom
discretizer:macmini-wifi

Conversation

@discretizer

@discretizer discretizer commented Jul 28, 2025

Copy link
Copy Markdown

This PR adds support for the broadcom-wl driver. By default it is disabled but can be enabled by modfiying the driver blacklist files like so:

mv /etc/modprobe.d/blacklist-wl.conf to /etc/modprobe.d/blacklist-wl.conf.disabled
mv /etc/modprobe.d/macbook-wifi.conf.disabled /etc/modprobe.d/macbook-wifi.conf
batocera-save-overlay

Additionally to get things to work a patch to wpa_supplicant is needed. The patch in this PR is taken from the following wpa_supplicant development thread:

https://lists.infradead.org/pipermail/hostap/2025-May/043475.html

This should fix an issue with the broadcom wl driver where AP scans don't work. This is a combination of two separate patches that are already in the upstream git repo, but not in the released version.

This PR resolves the following issue:
#7894

And replaces the older PR here:
#7735

To revert these changes just reverse the above renames
Tested on a Macmini7,1

Add patches for later kernel versions

Add patch for 6.15 kernel

Commit last fix
@discretizer

Copy link
Copy Markdown
Author

I kinda wish there was a better way to do some of these enabling steps. I've simplified this as much as possible. If anyone has any thoughts let me know - or just point me to some documentation I can update to add these steps.

I think the wpa_supplicant step was primarily what was missing from the earlier PR.

@dmanlfc

dmanlfc commented Jul 28, 2025

Copy link
Copy Markdown
Collaborator

This was confirmed as not working by multiple Mac users. I don't see what's changed...

@discretizer

This comment was marked as outdated.

@discretizer

This comment was marked as outdated.

@discretizer

Copy link
Copy Markdown
Author

If there's a better way to handle this configuration quirk let me know. I'm fine if the eventual answer is "will not merge" (the driver is ancient anyway), I just want to get some documentation out there for how to make this work.

@discretizer

discretizer commented Jul 29, 2025

Copy link
Copy Markdown
Author

Ok... there was ANOTHER wpa_supplicant bug. I made a PR into the buildroot repo to fix that one:

batocera-linux/buildroot#1054

@dmanlfc

dmanlfc commented Jul 29, 2025

Copy link
Copy Markdown
Collaborator

The dbus change cannot be added as is. It will affect all users. Also we don't use systemd.

@discretizer

discretizer commented Jul 29, 2025

Copy link
Copy Markdown
Author

The dbus change cannot be added as is. It will affect all users. Also we don't use systemd.

DBus change is not needed anymore with the wpa_supplicant PR and nothing in this PR should affect or depend on systemd.

@dmanlfc

dmanlfc commented Jul 29, 2025

Copy link
Copy Markdown
Collaborator

The previous dbus change referenced systemd.
The patch may be ok, I will need to read it in more detail.
Where is the source of this patch? So I can read more about it.

@discretizer

Copy link
Copy Markdown
Author

Moved the wpa_supplicant patch here in proper location per your comment on the buildroot PR (batocera-linux/buildroot#1054) and closed that PR. Patch originates from wpa_supplicant development thread here:
https://lists.infradead.org/pipermail/hostap/2025-May/043475.html

Reverted build root changes in branch.

@kpek

kpek commented Mar 3, 2026

Copy link
Copy Markdown

Hi, when is this scheduled to be merged please?

@markmorris

markmorris commented Mar 9, 2026

Copy link
Copy Markdown

Yeah I’ve decided to do this with a few old Mac minis and none of the WiFi works… can we get a simple implementation please or merge this. I’m not 100 sure how to use this to get it working.

Tried two separate WiFi dongles as well. None work. Any other Linux distributions I’ve used doesn’t have this problem! So long term you should be able to have it

@dmanlfc dmanlfc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested against kernel 6.18

@@ -0,0 +1,11 @@
# Unfortunately the older `wl` broadcom driver conflicts with other drivers in the kernel.
# Therefore we need to rename this file so that other kernel modules don't conflict with it.
# Rename this so that the .disabled is removed from the name - i.e. macbook-wifi.conf

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You renamed the file from my original PR so this now doesn't make sense.

@lbrpdx

lbrpdx commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

What is the status on this? Please be aware that none of the devs has access to every piece of hardware that can run Batocera. Things like old iMacs need your help to validate the changes.

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

Labels

43 Batocera 43

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants