From 1047f0a6bf88a7eb49a1a7380e17e2077eecec73 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 17 Sep 2024 19:07:47 +0300 Subject: [PATCH] nixos/hostapd: set default channel to auto The current default, 7, is, to put it nicely, absolutely ridiculous. On 2.4 GHz, the only channels you should use are 1, 6 and 11, because every other channel overlaps one of those and causes interference. On 5/6 GHz, channel 7 does not exist at all. Also, it's 2024, most things will support automatic channel selection, and those that don't will likely need extra care to support prehistoric hardware anyway. --- nixos/modules/services/networking/hostapd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/hostapd.nix b/nixos/modules/services/networking/hostapd.nix index b678656f2e04..3a3f14523d41 100644 --- a/nixos/modules/services/networking/hostapd.nix +++ b/nixos/modules/services/networking/hostapd.nix @@ -235,7 +235,7 @@ in { }; channel = mkOption { - default = 7; + default = 0; example = 11; type = types.int; description = ''