From 964dae56245c38d051ea651c7eb5cbaba2c6014c Mon Sep 17 00:00:00 2001 From: Florian Maurer Date: Sun, 5 Jan 2025 12:53:07 +0100 Subject: [PATCH] gluon-core: rename psk3 to sae as it is used in openwrt that way --- .../lib/gluon/config-mode/model/admin/privatewifi.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/gluon-web-private-wifi/luasrc/lib/gluon/config-mode/model/admin/privatewifi.lua b/package/gluon-web-private-wifi/luasrc/lib/gluon/config-mode/model/admin/privatewifi.lua index 1be55abdff..43f17c639f 100644 --- a/package/gluon-web-private-wifi/luasrc/lib/gluon/config-mode/model/admin/privatewifi.lua +++ b/package/gluon-web-private-wifi/luasrc/lib/gluon/config-mode/model/admin/privatewifi.lua @@ -49,10 +49,11 @@ local encryption = s:option(ListValue, "encryption", translate("Encryption")) encryption:depends(enabled, true) encryption:value("psk2", translate("WPA2")) if wireless.device_supports_wpa3() then - encryption:value("psk3-mixed", translate("WPA2 / WPA3")) - encryption:value("psk3", translate("WPA3")) + encryption:value("sae-mixed", translate("WPA2 / WPA3")) + encryption:value("sae", translate("WPA3")) end -encryption.default = uci:get('wireless', primary_iface, 'encryption') or "psk2" +encryption_value = uci:get('wireless', primary_iface, 'encryption') or "psk2" +encryption.default = encryption_value:gsub("psk3", "sae") local mfp = s:option(ListValue, "mfp", translate("Management Frame Protection")) mfp:depends(enabled, true)