summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-11-14 11:12:40 +0100
committerJo-Philipp Wich <jo@mein.io>2019-11-14 11:13:43 +0100
commit857cd8c7fad3ef38680b2f8a2a7ada43a7892349 (patch)
treeb72699338fc902cba1ae3e43dd82a25bd5ca6fa1
parent80c9b6fee0aff23b4c56563612f70ef2c412b7ac (diff)
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>
-rw-r--r--modules/luci-compat/luasrc/model/network.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-compat/luasrc/model/network.lua b/modules/luci-compat/luasrc/model/network.lua
index a36a23f321..7c88b428cc 100644
--- a/modules/luci-compat/luasrc/model/network.lua
+++ b/modules/luci-compat/luasrc/model/network.lua
@@ -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)