projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d52859b
)
libs/core: fix network is_empty() check for wifi-ifaces which are part of multiple...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 26 Jun 2012 21:49:24 +0000
(21:49 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 26 Jun 2012 21:49:24 +0000
(21:49 +0000)
libs/core/luasrc/model/network.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/model/network.lua
b/libs/core/luasrc/model/network.lua
index d06216433511895f3739a06c5c087f6939d8e6c7..1764a3d41dc541dd15c7cdc92e0b2ab9f17cf503 100644
(file)
--- a/
libs/core/luasrc/model/network.lua
+++ b/
libs/core/luasrc/model/network.lua
@@
-782,9
+782,12
@@
function protocol.is_empty(self)
_uci_real:foreach("wireless", "wifi-iface",
function(s)
- if s.network == self.sid then
- rv = false
- return false
+ local n
+ for n in utl.imatch(s.network) do
+ if n == self.sid then
+ rv = false
+ return false
+ end
end
end)