NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.48k stars 14.4k forks source link

wpa_supplicant: can't get wifi up and running on RPI4 #361239

Closed brianmay closed 1 week ago

brianmay commented 1 week ago

Describe the bug

Immediately after upgrading from nixos24.05 to nixos24.11, wifi networking stopped. Before rebooting in fact. Rebooting to new kernel doesn't help.

Logs give a lot of message along the lines of "brcmfmac: brcmf_set_channel: set chanspec: 0xXXXX fail, reason -52"

This leads me to google search results like https://github.com/raspberrypi/linux/issues/6049 which blame wpa_supplicant 2.11 and say I should downgrade to wpa_supplicant 2.10.

Unfortunately I can't see any easy way of overriding the wpa_supplicant to 2.10 without downgrading back to nixos-24.05.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Have working wifi on nixos 24.05
  2. Upgrade to nixos 24.11

Expected behavior

Networking should continue to work

Metadata

(nixpkgs not found because there was no networking)

Notify maintainers

@marcweber @ma27


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

brianmay commented 1 week ago

Never mind, I was on completely the wrong track entirely.

This changed fixed it.

-    networks = { PENGUINS.psk = "ext:PSK_PENGUINS"; };
+    networks = {PENGUINS.pskRaw = "ext:PSK_PENGUINS";};

The docs led me to believe that pskRaw is for hex format passwords only. But plan-text passwords also work fine.