libs/core: fix network is_empty() check for wifi-ifaces which are part of multiple networks

This commit is contained in:
Jo-Philipp Wich 2012-06-26 21:49:24 +00:00
parent d52859b37e
commit 61883f2c3f

View file

@ -782,10 +782,13 @@ function protocol.is_empty(self)
_uci_real:foreach("wireless", "wifi-iface", _uci_real:foreach("wireless", "wifi-iface",
function(s) function(s)
if s.network == self.sid then local n
for n in utl.imatch(s.network) do
if n == self.sid then
rv = false rv = false
return false return false
end end
end
end) end)
return rv return rv