Merge pull request #1709 from dibdot/get_interface-fix
authorJo-Philipp Wich <jo@mein.io>
Thu, 5 Apr 2018 07:49:49 +0000 (09:49 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Apr 2018 07:49:49 +0000 (09:49 +0200)
luci-base/network.lua: fix get_interface function

modules/luci-base/luasrc/model/network.lua

index 056fc67..dfe818b 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