confd: wifi: rename setting enable-wifi6

Use the standard name instead of the marketing name,
new syntax enable-80211ax, which is consistent with
the nameing of the new roaming settings.
This commit is contained in:
Mattias Walström
2026-01-23 13:03:58 +01:00
parent 0ac4c4ca6f
commit f002c5570f
3 changed files with 16 additions and 17 deletions
+7 -7
View File
@@ -413,7 +413,7 @@ static int wifi_gen_aps_on_radio(const char *radio_name, struct lyd_node *cifs,
char hostapd_conf[256];
char **ap_list = NULL;
FILE *hostapd = NULL;
bool wifi6_enabled;
bool ax_enabled;
int ap_count = 0;
char bssid[18];
int i;
@@ -459,7 +459,7 @@ static int wifi_gen_aps_on_radio(const char *radio_name, struct lyd_node *cifs,
country = lydx_get_cattr(radio_node, "country-code");
band = lydx_get_cattr(radio_node, "band");
channel = lydx_get_cattr(radio_node, "channel");
wifi6_enabled = lydx_get_bool(radio_node, "enable_wifi6");
ax_enabled = lydx_get_bool(radio_node, "enable-80211ax");
/* Get secret from keystore if not open network */
if (secret_name && strcmp(security_mode, "open") != 0) {
@@ -544,20 +544,20 @@ static int wifi_gen_aps_on_radio(const char *radio_name, struct lyd_node *cifs,
if (band) {
if (!strcmp(band, "2.4GHz")) {
/* 2.4GHz: Enable 802.11n (HT), optionally WiFi 6 */
/* 2.4GHz: Enable 802.11n (HT), optionally 802.11ax */
fprintf(hostapd, "ieee80211n=1\n");
if (wifi6_enabled) {
if (ax_enabled) {
fprintf(hostapd, "ieee80211ax=1\n");
}
} else if (!strcmp(band, "5GHz")) {
/* 5GHz: Enable 802.11n and 802.11ac, optionally WiFi 6 */
/* 5GHz: Enable 802.11n and 802.11ac, optionally 802.11ax */
fprintf(hostapd, "ieee80211n=1\n");
fprintf(hostapd, "ieee80211ac=1\n");
if (wifi6_enabled) {
if (ax_enabled) {
fprintf(hostapd, "ieee80211ax=1\n");
}
} else if (!strcmp(band, "6GHz")) {
/* 6GHz: Enable 802.11ax (WiFi 6E required) */
/* 6GHz: Enable 802.11ax (required for 6GHz) */
fprintf(hostapd, "ieee80211n=1\n");
fprintf(hostapd, "ieee80211ac=1\n");
fprintf(hostapd, "ieee80211ax=1\n");
+6 -7
View File
@@ -262,16 +262,15 @@ module infix-hardware {
congestion in most environments.";
}
leaf enable-wifi6 {
leaf enable-80211ax {
type boolean;
default false;
description
"Enable WiFi 6 (802.11ax) on 2.4GHz and 5GHz bands.
"Enable 802.11ax (WiFi 6) on 2.4GHz and 5GHz bands.
By default, WiFi 6 is enabled only on 6GHz (WiFi 6E).
Set to 'true' to enable WiFi 6 on 2.4GHz and 5GHz bands.
By default, 802.11ax is enabled only on 6GHz (WiFi 6E).
Set to 'true' to enable 802.11ax on 2.4GHz and 5GHz bands.
WiFi 6 provides:
802.11ax provides:
- OFDMA (better multi-user efficiency)
- Target Wake Time (better battery life)
- 1024-QAM (higher throughput)
@@ -281,7 +280,7 @@ module infix-hardware {
- Hardware support for 802.11ax
- Compatible clients for full benefits
Note: 6GHz band always uses WiFi 6 regardless of this setting.";
Note: 6GHz band always uses 802.11ax regardless of this setting.";
}
/*