Merge r4128
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Jan 2009 17:28:46 +0000 (17:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Jan 2009 17:28:46 +0000 (17:28 +0000)
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua

index 14e6d56..8180bfe 100644 (file)
@@ -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