From: Jo-Philipp Wich Date: Thu, 14 Nov 2019 10:12:40 +0000 (+0100) Subject: luci-compat: network.lua: recognize wifi interfaces with nonstandard names X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=857cd8c7fad3ef38680b2f8a2a7ada43a7892349;p=oweals%2Fluci.git luci-compat: network.lua: recognize wifi interfaces with nonstandard names Ref: https://github.com/openwrt/luci/issues/3306 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-compat/luasrc/model/network.lua b/modules/luci-compat/luasrc/model/network.lua index a36a23f32..7c88b428c 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)