gluon-core: gluon.util: fix PHY detection for radios addressed by PCIe address

This commit is contained in:
Julian Labus 2017-04-09 20:33:16 +02:00 committed by Matthias Schiffer
parent da22c5cf8e
commit 734d1925de
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -138,6 +138,10 @@ local function find_phy_by_path(path)
for phy in fs.glob('/sys/devices/' .. path .. '/ieee80211/phy*') do
return phy:match('([^/]+)$')
end
for phy in fs.glob('/sys/devices/platform/' .. path .. '/ieee80211/phy*') do
return phy:match('([^/]+)$')
end
end
local function find_phy_by_macaddr(macaddr)