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
@ -181,7 +181,7 @@ function _wifi_iface(x)
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
return (nfs.access("/sys/class/net/%s/phy80211" % x) == true)
|
||||
end
|
||||
|
||||
local function _wifi_iwinfo_by_ifname(ifname, force_phy_only)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user