1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 14:59:43 +01:00
nixos-hardware/pine64/pinephone-pro/wifi.nix
2024-08-11 19:31:14 +02:00

27 lines
770 B
Nix

{ config, lib, ... }:
let
cfg = config.hardware.pinephone-pro;
in
{
options.hardware.pinephone-pro = {
wifi.workaround-sae = lib.mkOption {
type = lib.types.bool;
default = true;
description = ''
A bug in the brcmfmac module causes it to attempt to offload SAE.
This will cause connection failures and the following error message
brcmfmac: brcmf_set_channel: set chanspec 0x???? fail, reason -52
Related: https://github.com/raspberrypi/linux/issues/6049
'';
};
};
config = lib.mkIf cfg.wifi.workaround-sae {
#Disable SAE and FWSUP
#See: https://iwd.wiki.kernel.org/offloading
boot.extraModprobeConfig = lib.mkDefault ''
options brcmfmac feature_disable=0x82000
'';
};
}