luci-base/network.lua: fix get_interface function 1709/head
authorDirk Brenken <dev@brenken.org>
Sat, 31 Mar 2018 05:06:52 +0000 (07:06 +0200)
committerDirk Brenken <dev@brenken.org>
Sat, 31 Mar 2018 05:11:02 +0000 (07:11 +0200)
* fix wrong private function call to handle
  section id as parameter (fix for #1687)

Signed-off-by: Dirk Brenken <dev@brenken.org>
modules/luci-base/luasrc/model/network.lua

index 056fc67b144fce476bb05b03913a0f060e88fd31..dfe818bcc72e7d840d7df906d44c2e04a2a1c293 100644 (file)
@@ -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