projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82e3d8
)
luci-compat: network.lua: recognize wifi interfaces with nonstandard names
author
Jo-Philipp Wich
<jo@mein.io>
Thu, 14 Nov 2019 10:12:40 +0000
(11:12 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 14 Nov 2019 10:16:00 +0000
(11:16 +0100)
Ref: https://github.com/openwrt/luci/issues/3306
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
857cd8c7fad3ef38680b2f8a2a7ada43a7892349
)
modules/luci-compat/luasrc/model/network.lua
patch
|
blob
|
history
diff --git
a/modules/luci-compat/luasrc/model/network.lua
b/modules/luci-compat/luasrc/model/network.lua
index c8b62f29020927b11b38c4d2a7aaaa736c6c9bcf..1f761e315e510e78638eb0bce27e40e671b118e4 100644
(file)
--- 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)