libs/sys: fix getiwinfo() for "radioX.networkY" notation if the target network is not yet committed to uci
This commit is contained in:
parent
6b128c0281
commit
2c844d42d8
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue