summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-04-05 09:49:49 +0200
committerGitHub <noreply@github.com>2018-04-05 09:49:49 +0200
commitac2210376dd294f7a69589de79ea5f4845787db5 (patch)
tree451de8ad16a119309467b3b6a48958ea58d72f9c /modules/luci-base/luasrc
parentc0d9c4f3ce7bda19081d0da01a599bec067338a3 (diff)
parent87c2d9526464d111c3b7717e8dba94aaec67e74a (diff)
Merge pull request #1709 from dibdot/get_interface-fix
luci-base/network.lua: fix get_interface function
Diffstat (limited to 'modules/luci-base/luasrc')
-rw-r--r--modules/luci-base/luasrc/model/network.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua
index 056fc67b14..dfe818bcc7 100644
--- a/modules/luci-base/luasrc/model/network.lua
+++ b/modules/luci-base/luasrc/model/network.lua
@@ -629,7 +629,7 @@ function get_interface(self, i)
if _interfaces[i] or _wifi_iface(i) then
return interface(i)
else
- local netid = _wifi_netid_by_netname(i)
+ local netid = _wifi_netid_by_sid(i)
return netid and interface(netid)
end
end