Fixing WiFi on a Fresh Raspberry Pi OS Trixie Image

While i was setting up a Raspberry Pi Zero 2W, I came across a WiFi failure immediately after creating a new Raspberry Pi 64-bit OS Lite boot image. The device would not connect to my network even after verifying that I had the correct SSID and password.

I tried with the Desktop image and saw the same behaviour. After using the Legacy OS Lite version, it connected correct.

It turns out that this is a known issue with wpa_supplicant (see Raspberry Pi Trixie feedback issue #107 and Raspberry Pi Linux issue #7634) but doesn’t have a fix available yet. It can surface if your WiFi access point is running in a mixed WPA2/WPA3 mode like mine is.

The intention is get up and running to downgrade wpa_supplicant to a known good version so the workaround is to edit /boot/firmware/cmdline.txt and add this kernel parameter to the end of the line (don’t introduce a line break):

brcmfmac.feature_disable=0x2282000

and reboot.

This gets you to a working network connection and then you can optionally carry out the following steps to downgrade:

sudo apt-get install --allow-downgrades wpasupplicant=2:2.10-24

sudo apt-mark hold wpasupplicant

sudo systemctl restart wpa_supplicant NetworkManager

Leave a Reply

Your email address will not be published. Required fields are marked *