From 02edf564bda51756942112bd50f926672993e5b1 Mon Sep 17 00:00:00 2001
From: "J. Burfeind" <git@aiyionpri.me>
Date: Fri, 13 May 2022 23:36:34 +0200
Subject: [PATCH] ath79-generic: (re)add CPE210v3 (#2506)

Gone due to
commit 45c84a117bf8 ("ar71xx: drop target")
---
 docs/user/supported_devices.rst                          | 2 +-
 package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 1 +
 targets/ath79-generic                                    | 7 +++++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 8f58fc30e..8068c7396 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -84,7 +84,7 @@ ath79-generic
   - Archer C6 (v2)
   - Archer C7 (v2, v4, v5)
   - Archer C59 (v1)
-  - CPE210 (v1.0, v1.1, v2.0)
+  - CPE210 (v1.0, v1.1, v2.0, v3.0, v3.1, v3.20)
   - CPE220 (v3.0)
   - CPE510 (v1.0, v1.1)
   - CPE510 (v2.0)
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 6d5bd8a77..96b4eeee3 100644
--- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
+++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
@@ -29,6 +29,7 @@ function M.is_outdoor_device()
 		'plasmacloud,pa300e',
 		'tplink,cpe210-v1',
 		'tplink,cpe210-v2',
+		'tplink,cpe210-v3',
 		'tplink,cpe220-v3',
 		'tplink,cpe510-v1',
 		'tplink,cpe510-v2',
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 15ab14397..5d53a3e77 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -353,6 +353,13 @@ device('tp-link-cpe210-v2', 'tplink_cpe210-v2', {
 		'tp-link-cpe210-v2.0', -- Upgrade from OpenWrt 19.07
 	},
 })
+device('tp-link-cpe210-v3', 'tplink_cpe210-v3', {
+	manifest_aliases = {
+		'tp-link-cpe210-v3.0', -- Upgrade from OpenWrt 19.07
+		'tp-link-cpe210-v3.1', -- Upgrade from OpenWrt 19.07
+		'tp-link-cpe210-v3.20', -- Upgrade from OpenWrt 19.07
+	},
+})
 device('tp-link-cpe220-v3', 'tplink_cpe220-v3')
 device('tp-link-cpe510-v1', 'tplink_cpe510-v1', {
 	manifest_aliases = {
-- 
GitLab