From 5cb5ed38343310f0c628358603ff18f195eb09f6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 14 Nov 2019 11:12:40 +0100 Subject: [PATCH] luci-compat: network.lua: recognize wifi interfaces with nonstandard names Ref: https://github.com/openwrt/luci/issues/3306 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 857cd8c7fad3ef38680b2f8a2a7ada43a7892349) --- modules/luci-compat/luasrc/model/network.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-compat/luasrc/model/network.lua b/modules/luci-compat/luasrc/model/network.lua index c8b62f290..1f761e315 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) -- 2.25.1