From 0a43cfb40313ba1ef7c5ef3b5a646e3a5c4099e5 Mon Sep 17 00:00:00 2001 From: Tom Herbers Date: Wed, 3 Jan 2024 14:20:05 +0100 Subject: [PATCH] ath79-generic: (re)add support for Ubiquiti AirMax targets A fix has been found for the read-only filesystems after upgrades on Ubiquiti airmax devices. This reverts commit a0f5b4e9468e9c2fa28459143a7df6ced348f452. This reverts commit d6dd6293ba9c090da43b403b2c58613c8128fb5c partially. --- docs/user/supported_devices.rst | 4 ++++ .../gluon-core/luasrc/lib/gluon/upgrade/020-interfaces | 1 + .../gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 4 ++++ targets/ath79-generic | 10 ++++++++++ 4 files changed, 19 insertions(+) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index 22497af244..4c4beab69e 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -148,6 +148,10 @@ ath79-generic * Ubiquiti + - NanoBeam 5AC 19 (XC) + - NanoBeam M5 (XW) + - NanoStation Loco M2/M5 (XW) + - NanoStation M2/M5 (XW) - UniFi AC Lite - UniFi AC LR - UniFi AC Mesh diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces index a365349287..219b9120f0 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces @@ -50,6 +50,7 @@ if platform.match('ath79', 'generic', { 'tplink,wbs210-v1', 'tplink,wbs210-v2', 'tplink,wbs510-v1', + 'ubnt,nanostation-m-xw', 'ubnt,unifi-ap-pro', }) then lan_ifname, wan_ifname = wan_ifname, lan_ifname diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua index 014e516c43..f542a30d44 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -41,6 +41,10 @@ function M.is_outdoor_device() 'tplink,wbs210-v1', 'tplink,wbs210-v2', 'tplink,wbs510-v1', + 'ubnt,nanobeam-ac-xc', + 'ubnt,nanobeam-m5-xw', + 'ubnt,nanostation-loco-m-xw', + 'ubnt,nanostation-m-xw', 'ubnt,uk-ultra', 'ubnt,unifi-ap-outdoor-plus', 'ubnt,unifiac-mesh', diff --git a/targets/ath79-generic b/targets/ath79-generic index 35894acc50..b063ec8337 100644 --- a/targets/ath79-generic +++ b/targets/ath79-generic @@ -518,6 +518,16 @@ device('tp-link-wbs510-v1', 'tplink_wbs510-v1') -- Ubiquiti +device('ubiquiti-nanobeam-ac-gen1-xc', 'ubnt_nanobeam-ac-xc', { + packages = ATH10K_PACKAGES_QCA9880, +}) + +device('ubiquiti-nanobeam-m5-xw', 'ubnt_nanobeam-m5-xw') + +device('ubiquiti-nanostation-loco-m-xw', 'ubnt_nanostation-loco-m-xw') + +device('ubiquiti-nanostation-m-xw', 'ubnt_nanostation-m-xw') + device('ubiquiti-unifi-ac-lite', 'ubnt_unifiac-lite', { factory = false, packages = ATH10K_PACKAGES_QCA9880,