diff --git a/luasrc/model/cbi/commotion/security_pass.lua b/luasrc/model/cbi/commotion/security_pass.lua index 1240b6d..c1bcb91 100644 --- a/luasrc/model/cbi/commotion/security_pass.lua +++ b/luasrc/model/cbi/commotion/security_pass.lua @@ -148,7 +148,7 @@ if #mesh_ifaces > 1 then local meshPW = m:section(NamedSection, x.name, "wifi-iface", x.name, pw_text) meshPW = pw_sec_opt(meshPW, x, 'adhoc') end -else +elseif #mesh_ifaces == 1 then local meshPW = m:section(NamedSection, mesh_ifaces[1].name, "wifi-iface", mesh_ifaces[1].name, pw_text) meshPW = pw_sec_opt(meshPW, mesh_ifaces[1], 'adhoc') end