Skip to content
Snippets Groups Projects
Unverified Commit 39c3c7ad authored by J. Burfeind's avatar J. Burfeind Committed by GitHub
Browse files

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

Ubiquiti UniFi AP PRO

Gone due to
commit 45c84a11 ("ar71xx: drop target")
parent 087c15ae
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,7 @@ ath79-generic ...@@ -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', { ...@@ -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 @@ ...@@ -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', { ...@@ -323,3 +323,5 @@ device('ubiquiti-unifi-ap', 'ubnt_unifi', {
'ubiquiti-unifi', 'ubiquiti-unifi',
}, },
}) })
device('ubiquiti-unifi-ap-pro', 'ubnt_unifi-ap-pro')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment