confd: wifi: Disable legacy rates (802.11b)

This may improve range of Wi-Fi, with low/none
impact. This could make configurable later on.
This commit is contained in:
Mattias Walström
2026-01-23 13:05:33 +01:00
parent 0f6ab23206
commit 10d7cbc267
+4
View File
@@ -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");
}