git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2627296
)
modules/freifunk: display status of all non-encrypted wireless networks if no freifun...
author
Jo-Philipp Wich
<redacted>
Sun, 25 Jan 2009 17:28:15 +0000
(17:28 +0000)
committer
Jo-Philipp Wich
<redacted>
Sun, 25 Jan 2009 17:28:15 +0000
(17:28 +0000)
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
patch
|
blob
|
history
diff --git
a/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
b/modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua
index 27ffd959fd5de2cb9803d5b4a5d34bfb2f6b4d15..56e956363e6b6fab0a5835f25b56f6cf8e5b23d4 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT