gluon-core: use HE radio mode if available

Configure a radio for HE (802.11ax) operation in case it's supported by
the hardware. This can be the case for 2.4 GHz as well as 5 GHz.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer 2021-06-29 00:40:18 +02:00
parent 4985b21858
commit 260a75cd59
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ local function get_htmode(radio)
end
local phy = wireless.find_phy(radio)
if iwinfo.nl80211.hwmodelist(phy).ax then
return 'HE20'
end
if iwinfo.nl80211.hwmodelist(phy).ac then
return 'VHT20'
end