Browse Source

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

Julian Labus 7 years ago
parent
commit
734d1925de
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua

+ 4 - 0
package/gluon-core/luasrc/usr/lib/lua/gluon/util.lua

@@ -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)