luci-app-travelmate: WEP-fixes
* fix some more WEP-related form issues
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 9a47552bd9
)
This commit is contained in:
parent
ffbf43056f
commit
9c51bbc48b
2 changed files with 4 additions and 0 deletions
|
@ -172,6 +172,8 @@ cmd_list.default = cmd or "none"
|
|||
cmd_args.default = cmd_args_default
|
||||
|
||||
function wssid.write(self, section, value)
|
||||
login_section = (m.hidden.device or "") .. "_" .. (wssid:formvalue(section) or "") .. "_" .. (bssid:formvalue(section) or "")
|
||||
login_section = login_section:gsub("[^%w_]", "_")
|
||||
newsection = uci:section("wireless", "wifi-iface", login_section, {
|
||||
mode = "sta",
|
||||
network = trmiface,
|
||||
|
|
|
@ -48,6 +48,8 @@ if s ~= nil then
|
|||
|
||||
wkey = m:field(Value, "key", translate("Passphrase"))
|
||||
wkey.datatype = "wepkey"
|
||||
wkey.password = true
|
||||
wkey.default = s.key
|
||||
elseif string.match(s.encryption, '^wpa') then
|
||||
encr = m:field(ListValue, "encryption", translate("Encryption"))
|
||||
encr:value("wpa", "WPA Enterprise")
|
||||
|
|
Loading…
Reference in a new issue