summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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 f82cd78cb7..c8ad5393e0 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)