Skip to content

Commit

Permalink
ath79-generic: (re)add support for UniFi AC Mesh Pro
Browse files Browse the repository at this point in the history
Gone due to
commit 45c84a1 ("ar71xx: drop target")
  • Loading branch information
AiyionPrime committed Apr 16, 2022
1 parent 4225bd3 commit 1807150
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/user/supported_devices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ ath79-generic
- UniFi AC Lite
- UniFi AC LR
- UniFi AC Mesh
- UniFi AC Mesh Pro
- UniFi AP
- UniFi AP LR
- UniFi AP PRO
Expand Down
5 changes: 5 additions & 0 deletions package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ if platform.match('ath79', 'generic', {
'ubnt,unifi-ap-pro',
}) then
lan_ifname, wan_ifname = wan_ifname, lan_ifname
elseif platform.match('ath79', 'generic', {
'ubnt,unifiac-mesh-pro',
}) then
-- Temporary solution to separate interfaces in bridged default setup
lan_ifname, wan_ifname = 'eth0', 'eth1'
elseif platform.match('lantiq') then
local switch_data = board_data.switch or {}
local switch0_data = switch_data.switch0 or {}
Expand Down
1 change: 1 addition & 0 deletions package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function M.is_outdoor_device()
'tplink,wbs210-v2',
'ubnt,nanostation-m-xw',
'ubnt,unifiac-mesh',
'ubnt,unifiac-mesh-pro',
}) then
return true

Expand Down
5 changes: 5 additions & 0 deletions targets/ath79-generic
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ device('ubiquiti-unifi-ac-mesh', 'ubnt_unifiac-mesh', {
packages = ATH10K_PACKAGES_QCA9880,
})

device('ubiquiti-unifi-ac-mesh-pro', 'ubnt_unifiac-mesh-pro', {
factory = false,
packages = ATH10K_PACKAGES_QCA9880,
})

device('ubiquiti-unifi-ap', 'ubnt_unifi', {
aliases = {
'ubiquiti-unifi-ap-lr',
Expand Down

0 comments on commit 1807150

Please sign in to comment.