From 2c844d42d819f1d2b5f9827b3e079801f238938d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 14 Aug 2012 12:45:12 +0000 Subject: libs/sys: fix getiwinfo() for "radioX.networkY" notation if the target network is not yet committed to uci --- libs/sys/luasrc/sys.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/sys/luasrc') 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) -- cgit v1.2.3