ath79-generic: (re)add support for UniFi AP PRO (#2416)

Ubiquiti UniFi AP PRO

Gone due to
commit 45c84a1 ("ar71xx: drop target")
This commit is contained in:
J. Burfeind 2022-03-26 11:11:32 +01:00 committed by GitHub
parent 087c15ae0c
commit 39c3c7adf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View File

@ -88,6 +88,7 @@ ath79-generic
- UniFi AC Mesh - UniFi AC Mesh
- UniFi AP - UniFi AP
- UniFi AP LR - UniFi AP LR
- UniFi AP PRO
ath79-nand ath79-nand
---------- ----------

View File

@ -47,6 +47,7 @@ if platform.match('ath79', 'generic', {
'tplink,cpe210-v2', 'tplink,cpe210-v2',
'tplink,cpe510-v1', 'tplink,cpe510-v1',
'tplink,wbs210-v2', 'tplink,wbs210-v2',
'ubnt,unifi-ap-pro',
}) then }) then
lan_ifname, wan_ifname = wan_ifname, lan_ifname lan_ifname, wan_ifname = wan_ifname, lan_ifname
elseif platform.match('lantiq') then elseif platform.match('lantiq') then

View File

@ -3,7 +3,11 @@
local platform = require 'gluon.platform' local platform = require 'gluon.platform'
local sysconfig = require 'gluon.sysconfig' local sysconfig = require 'gluon.sysconfig'
if platform.is_outdoor_device() then if platform.is_outdoor_device() or
platform.match('ath79', 'generic', {
'ubnt,unifi-ap-pro',
})
then
sysconfig.setup_ifname = sysconfig.single_ifname or sysconfig.wan_ifname sysconfig.setup_ifname = sysconfig.single_ifname or sysconfig.wan_ifname
else else
sysconfig.setup_ifname = sysconfig.single_ifname or sysconfig.lan_ifname sysconfig.setup_ifname = sysconfig.single_ifname or sysconfig.lan_ifname

View File

@ -323,3 +323,5 @@ device('ubiquiti-unifi-ap', 'ubnt_unifi', {
'ubiquiti-unifi', 'ubiquiti-unifi',
}, },
}) })
device('ubiquiti-unifi-ap-pro', 'ubnt_unifi-ap-pro')