From 191d9ed537f8cd6d2351d49ab2069468995c020d Mon Sep 17 00:00:00 2001 From: Seamus Tuohy Date: Fri, 21 Feb 2014 10:54:38 -0500 Subject: [PATCH] made single adhoc interface condition explicit about requirement for a single adhoc interface. --- luasrc/model/cbi/commotion/security_pass.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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