mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
Unload brcmfmac_wcc (if loaded) before brcmfmac (#1200)
Module brcmfmac cannot be unloaded with rmmod when brcmfmac_wcc is loaded. This leads brcmfmac to crash on wake up. Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
22e8de2729
commit
64d900abe4
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@
|
||||||
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
|
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
|
||||||
# Also brcmfmac could randomly crash on resume from sleep.
|
# Also brcmfmac could randomly crash on resume from sleep.
|
||||||
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac";
|
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac";
|
||||||
powerDownCommands = lib.mkBefore "${pkgs.kmod}/bin/rmmod brcmfmac";
|
powerDownCommands = lib.mkBefore ''
|
||||||
|
${pkgs.kmod}/bin/rmmod -f -v brcmfmac_wcc 2>/dev/null || true
|
||||||
|
${pkgs.kmod}/bin/rmmod brcmfmac
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# USB subsystem wakes up MBP right after suspend unless we disable it.
|
# USB subsystem wakes up MBP right after suspend unless we disable it.
|
||||||
|
|
Loading…
Reference in a new issue