Skip to content
Snippets Groups Projects
Unverified Commit 734d1925 authored by Julian Labus's avatar Julian Labus Committed by Matthias Schiffer
Browse files

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

parent da22c5cf
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,10 @@ local function find_phy_by_path(path) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment