summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua2
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/wifi.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
index c095cc5295..b61db62ac4 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -17,7 +17,7 @@ arg[1] = arg[1] or ""
m = Map("wireless", translate("networks"), translate("a_w_networks1"))
s = m:section(NamedSection, arg[1], "wifi-device", translate("device") .. " " .. arg[1])
---s.addremove = true
+s.addremove = false
back = s:option(DummyValue, "_overview", translate("overview"))
back.value = ""
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
index 31242b74bc..7327b9e1db 100644
--- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
+++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua
@@ -127,6 +127,7 @@ end
-- Config Section --
s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices"))
+s.addremove = false
en = s:option(Flag, "disabled", translate("enable"))
en.enabled = "0"