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:
e50dea1
)
libs/core: fix removal of wifi networks without interface attached (OpenWrt #10400)
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 12 Nov 2011 11:27:10 +0000
(11:27 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 12 Nov 2011 11:27:10 +0000
(11:27 +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 eff84f8108e0935e378a0bcc997361062be51775..61da9dfd0414ebf7af04ca135fe934ca4437b38b 100644
(file)
--- a/
libs/core/luasrc/model/network.lua
+++ b/
libs/core/luasrc/model/network.lua
@@
-1411,8
+1411,9
@@
function wifinet.adminlink(self)
end
function wifinet.get_network(self)
- if _uci_real:get("network", self.iwdata.network) == "interface" then
- return network(self.iwdata.network)
+ local net = tostring(self.iwdata.network)
+ if net and _uci_real:get("network", net) == "interface" then
+ return network(net)
end
end