libs/core: fix network is_empty() check for wifi-ifaces which are part of multiple networks
This commit is contained in:
parent
d52859b37e
commit
61883f2c3f
1 changed files with 6 additions and 3 deletions
|
@ -782,9 +782,12 @@ 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
|
||||||
rv = false
|
for n in utl.imatch(s.network) do
|
||||||
return false
|
if n == self.sid then
|
||||||
|
rv = false
|
||||||
|
return false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue