Merge pull request #2255 from blocktrron/pr-u6-lr

mediatek-mt7622: add support for UniFi 6 LR
This commit is contained in:
David Bauer 2021-06-29 23:32:36 +02:00 committed by GitHub
commit ab4c99842a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 0 deletions

View File

@ -123,6 +123,13 @@ lantiq-xway
- DGN3500B [#lan_as_wan]_
mediatek-mt7622
---------------
* Ubiquiti
- UniFi 6 LR
mpc85xx-generic
---------------

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

3
targets/mediatek-mt7622 Normal file
View File

@ -0,0 +1,3 @@
device('ubiquiti-unifi-6-lr', 'ubnt_unifi-6-lr', {
factory = false,
})

View File

@ -6,6 +6,7 @@ $(eval $(call GluonTarget,ipq40xx,generic))
$(eval $(call GluonTarget,ipq806x,generic))
$(eval $(call GluonTarget,lantiq,xrx200))
$(eval $(call GluonTarget,lantiq,xway))
$(eval $(call GluonTarget,mediatek,mt7622))
$(eval $(call GluonTarget,mpc85xx,p1010))
$(eval $(call GluonTarget,mpc85xx,p1020))
$(eval $(call GluonTarget,ramips,mt7620))