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:
e22e6dd
)
libs/core: further network model compatibility fixes
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 3 Dec 2013 15:23:09 +0000
(15:23 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 3 Dec 2013 15:23:09 +0000
(15:23 +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 c2c49f4c0d21b47a77173bacb9c731aa8ac5f43d..a409621f8e817eaf52952649a50449b6251c07e2 100644
(file)
--- a/
libs/core/luasrc/model/network.lua
+++ b/
libs/core/luasrc/model/network.lua
@@
-1173,11
+1173,7
@@
function interface.bridge_stp(self)
end
function interface.is_up(self)
- if self.wif then
- return self.wif:is_up()
- else
- return self:_ubus("up") or false
- end
+ return self:_ubus("up") or false
end
function interface.is_bridge(self)
@@
-1425,7
+1421,8
@@
function wifinet.get_device(self)
end
function wifinet.is_up(self)
- return (_wifi_state("section", self.sid, "up") == true)
+ local ifc = self:get_interface()
+ return (ifc and ifc:is_up() or false)
end
function wifinet.active_mode(self)