luci-compat: network.lua: recognize wifi interfaces with nonstandard names

Ref: https://github.com/openwrt/luci/issues/3306
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-11-14 11:12:40 +01:00
parent 80c9b6fee0
commit 857cd8c7fa

View file

@ -181,7 +181,7 @@ function _wifi_iface(x)
return true return true
end end
end end
return false return (nfs.access("/sys/class/net/%s/phy80211" % x) == true)
end end
local function _wifi_iwinfo_by_ifname(ifname, force_phy_only) local function _wifi_iwinfo_by_ifname(ifname, force_phy_only)