luci-0.10: merge r6976 and r6977
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 30 Mar 2011 11:44:14 +0000 (11:44 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 30 Mar 2011 11:44:14 +0000 (11:44 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua

index 5dd6393dc5fd4cbc7768ecd3b2a47e0d8a664684..9c848f250c1549b4a3dc4e07bf5d654d6febc769 100644 (file)
@@ -142,8 +142,9 @@ function newnet.parse(self, section)
                }
 
                if m.hidden.wep == "1" then
-                       wconf.encryption = "wep"
-                       wconf.key        = key and key:formvalue(section) or ""
+                       wconf.encryption = "wep-open"
+                       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 ""