2023-12-25 20:14:17 +00:00
|
|
|
{ config, lib, ... }:
|
2023-02-13 22:23:27 +00:00
|
|
|
lib.mkIf (config.hardware.librem5.wifiCard == "redpine") {
|
|
|
|
# Disable mainline rsi module
|
|
|
|
boot.blacklistedKernelModules = [
|
|
|
|
"rsi_91x"
|
|
|
|
"rsi_sdio"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Load redpine in Wi-Fi station + BT dual mode
|
|
|
|
boot.extraModprobeConfig = ''
|
|
|
|
options redpine_91x dev_oper_mode=13 rsi_zone_enabled=1 antenna_diversity=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|