Skip to content

Commit

Permalink
gluon-core: this fixes the mediatek-mt7622 issue with renaming wirele…
Browse files Browse the repository at this point in the history
…ss phys

Signed-off-by: Florian Maurer <[email protected]>
  • Loading branch information
maurerle committed Jan 23, 2025
1 parent ad321f5 commit be8278f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ local iwinfo = require 'iwinfo'
local M = {}

function M.find_phy(config)
return iwinfo.nl80211.phyname(config['.name'])
local phyname = iwinfo.nl80211.phyname(config['.name'])
if not phyname then
phyname = iwinfo.nl80211.phyname(config['.name']:gsub("radio", "phy"))
end
return phyname
end

local function get_addresses(radio)
Expand Down

0 comments on commit be8278f

Please sign in to comment.