From fd8d5a3cdbd6852b800c87911861d7da52b6e6e1 Mon Sep 17 00:00:00 2001 From: "J. Burfeind" Date: Fri, 25 Mar 2022 18:21:24 +0100 Subject: [PATCH] ath79-generic: (re)add support for CPE210 v2.x (#2429) Gone due to commit 45c84a117bf8 ("ar71xx: drop target") --- docs/user/supported_devices.rst | 2 +- package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces | 1 + package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 1 + targets/ath79-generic | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index 11550b2d..b32c1a10 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -68,7 +68,7 @@ ath79-generic - Archer A7 (v5) - Archer C6 (v2) - - CPE210 (v1.0, v1.1) + - CPE210 (v1.0, v1.1, v2.0) - CPE220 (v3.0) - CPE510 (v2.0) - CPE510 (v3.0) diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces index fcc1fa38..f76ab8ce 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces @@ -44,6 +44,7 @@ local wan_ifname = iface_exists(wan_interfaces) if platform.match('ath79', 'generic', { 'tplink,cpe210-v1', + 'tplink,cpe210-v2', 'tplink,wbs210-v2', }) 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 6c74777b..22901aa6 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -28,6 +28,7 @@ function M.is_outdoor_device() 'plasmacloud,pa300', 'plasmacloud,pa300e', 'tplink,cpe210-v1', + 'tplink,cpe210-v2', 'tplink,cpe220-v3', 'tplink,cpe510-v2', 'tplink,cpe510-v3', diff --git a/targets/ath79-generic b/targets/ath79-generic index 7a2075b9..11b54538 100644 --- a/targets/ath79-generic +++ b/targets/ath79-generic @@ -267,6 +267,11 @@ device('tp-link-cpe210-v1', 'tplink_cpe210-v1', { 'tp-link-cpe210-v1.1', -- Upgrade from OpenWrt 19.07 }, }) +device('tp-link-cpe210-v2', 'tplink_cpe210-v2', { + manifest_aliases = { + 'tp-link-cpe210-v2.0', -- Upgrade from OpenWrt 19.07 + }, +}) device('tp-link-cpe220-v3', 'tplink_cpe220-v3') device('tp-link-cpe510-v2', 'tplink_cpe510-v2') device('tp-link-cpe510-v3', 'tplink_cpe510-v3')