From cde20f895a01fd9e11f5ba19cca22e8cd48394b1 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 27 Apr 2022 09:53:34 +0200 Subject: [PATCH] Add workaround to prevent WiFi disconnects --- configuration.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index bf8cd12..1c29ea1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -104,7 +104,7 @@ in { identityPaths = [ "/etc/ssh/id_ed25519" ]; }; - # Enable internal microphone when headphones are plugged in + # Enable internal microphone when headphones are plugged in and add workaround for frequent WiFi disconnects hardware.firmware = [ (writeTextDir "/lib/firmware/hda-jack-retask.fw" '' [codec] @@ -124,7 +124,10 @@ in { 0x1e 0x411111f0 '') ]; - boot.extraModprobeConfig = "options snd-hda-intel patch=hda-jack-retask.fw"; + boot.extraModprobeConfig = '' + options snd-hda-intel patch=hda-jack-retask.fw + options mac80211 beacon_loss_count=1000 probe_wait_ms=75 + ''; # Import other configuration modules imports = [