提交 ad45ebf4 编写于 作者: J Jo-Philipp Wich

modules/admin-full: fix wep key handling in sta mode connection wizzard

上级 c1ca9106
......@@ -143,7 +143,8 @@ function newnet.parse(self, section)
if m.hidden.wep == "1" then
wconf.encryption = "wep"
wconf.key = key and key:formvalue(section) or ""
wconf.key = "1"
wconf.key1 = key and key:formvalue(section) or ""
elseif (tonumber(m.hidden.wpa_version) or 0) > 0 then
wconf.encryption = (tonumber(m.hidden.wpa_version) or 0) >= 2 and "psk2" or "psk"
wconf.key = key and key:formvalue(section) or ""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册