gluon-core: gluon.util: fix PHY detection for radios addressed by PCIe address
This commit is contained in:
parent
da22c5cf8e
commit
734d1925de
@ -138,6 +138,10 @@ local function find_phy_by_path(path)
|
|||||||
for phy in fs.glob('/sys/devices/' .. path .. '/ieee80211/phy*') do
|
for phy in fs.glob('/sys/devices/' .. path .. '/ieee80211/phy*') do
|
||||||
return phy:match('([^/]+)$')
|
return phy:match('([^/]+)$')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for phy in fs.glob('/sys/devices/platform/' .. path .. '/ieee80211/phy*') do
|
||||||
|
return phy:match('([^/]+)$')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function find_phy_by_macaddr(macaddr)
|
local function find_phy_by_macaddr(macaddr)
|
||||||
|
Loading…
Reference in New Issue
Block a user