Skip to content

Commit

Permalink
gluon-private-wifi: rename psk3 to sae
Browse files Browse the repository at this point in the history
Rename WPA3-SAE uci encryption method to SAE, as this is used more commonly upstream.

Signed-off-by: Florian Maurer <[email protected]>
  • Loading branch information
maurerle authored Jan 8, 2025
1 parent 4c7aef6 commit a475b19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ wireless.foreach_radio(uci, function(radio)
end

uci:set('wireless', name, 'ifname', suffix and 'wl-wan' .. suffix)

-- migrate encryption from Gluon v2023.2.x or older
-- remove in 2027 or on first release supporting only upgrades from >=v2025.1.x
local encryption = uci:get('wireless', name, 'encryption')
uci:set('wireless', name, 'encryption', encryption:gsub("psk3", "sae"))
end)

uci:save('wireless')
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ 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"

Expand Down

0 comments on commit a475b19

Please sign in to comment.