diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-25 17:28:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-25 17:28:15 +0000 |
commit | d35063211c5fd3ee9d5ae542a76906b0699dad0c (patch) | |
tree | b5f6b6310a4fab87c0b5a6c60b20224cf2b85e3f /modules/freifunk/luasrc/model | |
parent | 26272967cfc861b8069a095aced13c59ec8e1e1d (diff) |
modules/freifunk: display status of all non-encrypted wireless networks if no freifunk zone is defined
Diffstat (limited to 'modules/freifunk/luasrc/model')
-rw-r--r-- | modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua b/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua index 27ffd959fd..56e956363e 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 |