summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/sys.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/luasrc/sys.lua')
-rw-r--r--modules/luci-base/luasrc/sys.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/sys.lua b/modules/luci-base/luasrc/sys.lua
index f82cd78cb..c8ad5393e 100644
--- a/modules/luci-base/luasrc/sys.lua
+++ b/modules/luci-base/luasrc/sys.lua
@@ -7,7 +7,6 @@ local table = require "table"
local nixio = require "nixio"
local fs = require "nixio.fs"
local uci = require "luci.model.uci"
-local ntm = require "luci.model.network"
local luci = {}
luci.util = require "luci.util"
@@ -537,6 +536,8 @@ end
wifi = {}
function wifi.getiwinfo(ifname)
+ local ntm = require "luci.model.network"
+
ntm.init()
local wnet = ntm:get_wifinet(ifname)