We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7619c6 commit b484531Copy full SHA for b484531
package/gluon-core/luasrc/usr/lib/lua/gluon/wireless.lua
@@ -9,7 +9,14 @@ local iwinfo = require 'iwinfo'
9
local M = {}
10
11
function M.find_phy(config)
12
- return iwinfo.nl80211.phyname(config['.name'])
+ local phyname = iwinfo.nl80211.phyname(config['.name'])
13
+
14
+ -- TODO: quick-fix for mt7622 phy renaming
15
+ -- remove if fixed in upstream openwrt
16
+ if not phyname then
17
+ phyname = iwinfo.nl80211.phyname(config['.name']:gsub("radio", "phy"))
18
+ end
19
+ return phyname
20
end
21
22
local function get_addresses(radio)
0 commit comments