summaryrefslogtreecommitdiffhomepage
path: root/libs/sys/luasrc/sys.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-08-14 12:45:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-08-14 12:45:12 +0000
commit2c844d42d819f1d2b5f9827b3e079801f238938d (patch)
tree74071888524963954b3098cac2b7be05ed42e4e3 /libs/sys/luasrc/sys.lua
parent6b128c028146d6a7a0ed630f4be07c1d67cf8fc1 (diff)
libs/sys: fix getiwinfo() for "radioX.networkY" notation if the target network is not yet committed to uci
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r--libs/sys/luasrc/sys.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua
index c0fb5286e..bcffe7c4e 100644
--- a/libs/sys/luasrc/sys.lua
+++ b/libs/sys/luasrc/sys.lua
@@ -836,6 +836,7 @@ function wifi.getiwinfo(ifname)
local u = uci.cursor_state()
local d, n = ifname:match("^(%w+)%.network(%d+)")
if d and n then
+ ifname = d
n = tonumber(n)
u:foreach("wireless", "wifi-iface",
function(s)