From: Jo-Philipp Wich Date: Sun, 25 Jan 2009 17:28:46 +0000 (+0000) Subject: Merge r4128 X-Git-Tag: 0.8.5~41 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d158c5b9f0fc03e240a05bd1992e374d288bd637;p=oweals%2Fluci.git Merge r4128 --- diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua b/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua index 14e6d5664..8180bfe22 100644 --- a/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua +++ b/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua @@ -47,7 +47,10 @@ local wifidata = luci.sys.wifi.getiwconfig() local ifaces = {} for k, v in pairs(wireless) do - if v[".type"] == "wifi-iface" and luci.util.contains(ffwifs, v.device) then + if v[".type"] == "wifi-iface" and ( + luci.util.contains(ffwifs, v.device) or + ( #ffwifs == 0 and (not v.encryption or v.encryption == "none") ) ) + then table.insert(ifaces, v) end end