Check passphrase length in the UI form. Add ieee80211n/ieee80211ac.

This commit is contained in:
Alfredo Cardigliano 2020-12-07 16:32:08 +01:00
parent eb590a616d
commit 3a5fa4564a
4 changed files with 41 additions and 4 deletions

View file

@ -135,7 +135,22 @@ function system_config:getWirelessConfiguration()
end
function system_config:setWirelessConfiguration(config)
if config.enabled then
if isEmptyString(config.ssid) then
return false
end
if not isEmptyString(config.passphrase) then
local len = string.len(config.passphrase)
if len < 8 or len > 63 then
return false
end
end
end
self.config.wireless = config
return true
end
-- ##############################################