summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-03-24 20:56:23 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-03-24 20:56:23 +0000
commitad45ebf430d52e58549fe22407228addb5bad36f (patch)
tree578125813d60741270537c128202cf41aa370084
parentc1ca9106b85de3fb105ca97aa71b89bc43c3f7a0 (diff)
modules/admin-full: fix wep key handling in sta mode connection wizzard
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
index 5dd6393dc..1549568c7 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
@@ -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 ""