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:
parent
80c9b6fee0
commit
857cd8c7fa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue