Skip to content

Commit be8278f

Browse files
committed
gluon-core: this fixes the mediatek-mt7622 issue with renaming wireless phys
Signed-off-by: Florian Maurer <[email protected]>
1 parent ad321f5 commit be8278f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ local iwinfo = require 'iwinfo'
99
local M = {}
1010

1111
function M.find_phy(config)
12-
return iwinfo.nl80211.phyname(config['.name'])
12+
local phyname = iwinfo.nl80211.phyname(config['.name'])
13+
if not phyname then
14+
phyname = iwinfo.nl80211.phyname(config['.name']:gsub("radio", "phy"))
15+
end
16+
return phyname
1317
end
1418

1519
local function get_addresses(radio)

0 commit comments

Comments
 (0)