From 10d7cbc267c6b6ab6bdd1ac3a2c828d602fa51cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Wed, 21 Jan 2026 20:35:16 +0100 Subject: [PATCH] confd: wifi: Disable legacy rates (802.11b) This may improve range of Wi-Fi, with low/none impact. This could make configurable later on. --- src/confd/src/hardware.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/confd/src/hardware.c b/src/confd/src/hardware.c index 87526f18..e801e393 100644 --- a/src/confd/src/hardware.c +++ b/src/confd/src/hardware.c @@ -436,6 +436,10 @@ static int wifi_gen_aps_on_radio(const char *radio_name, struct lyd_node *cifs, /* Set hardware mode based on band */ if (!strcmp(band, "2.4GHz")) { fprintf(hostapd, "hw_mode=g\n"); + + /* Disable 802.11b rates, ancient devices. This will improve range. */ + fprintf(hostapd, "supported_rates=60 90 120 180 240 360 480 540\n"); + fprintf(hostapd, "basic_rates=60 120 240\n"); } else if (!strcmp(band, "5GHz") || !strcmp(band, "6GHz")) { fprintf(hostapd, "hw_mode=a\n"); }