From: Jo-Philipp Wich Date: Tue, 14 Aug 2012 12:45:12 +0000 (+0000) Subject: libs/sys: fix getiwinfo() for "radioX.networkY" notation if the target network is... X-Git-Tag: 0.11.0~353 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2c844d42d819f1d2b5f9827b3e079801f238938d;p=oweals%2Fluci.git libs/sys: fix getiwinfo() for "radioX.networkY" notation if the target network is not yet committed to uci --- 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)