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:
parent
087c15ae0c
commit
39c3c7adf3
@ -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
|
||||||
----------
|
----------
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -323,3 +323,5 @@ device('ubiquiti-unifi-ap', 'ubnt_unifi', {
|
|||||||
'ubiquiti-unifi',
|
'ubiquiti-unifi',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
device('ubiquiti-unifi-ap-pro', 'ubnt_unifi-ap-pro')
|
||||||
|
Loading…
Reference in New Issue
Block a user