From a5ada094bfe4b25352f8225913dd0644c4ad66e4 Mon Sep 17 00:00:00 2001 From: "J. Burfeind" Date: Thu, 24 Mar 2022 19:21:45 +0100 Subject: [PATCH] ath79-generic: (re)add support for CPE210 v1.x (#2410) Gone due to commit 45c84a117bf8 ("ar71xx: drop target") --- docs/user/supported_devices.rst | 1 + package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces | 1 + package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 1 + targets/ath79-generic | 6 ++++++ 4 files changed, 9 insertions(+) diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index 98009326..d6ca03c1 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -68,6 +68,7 @@ ath79-generic - Archer A7 (v5) - Archer C6 (v2) + - CPE210 (v1.0, v1.1) - 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 b56a1e26..fcc1fa38 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces @@ -43,6 +43,7 @@ local lan_ifname = iface_exists(lan_interfaces) local wan_ifname = iface_exists(wan_interfaces) if platform.match('ath79', 'generic', { + 'tplink,cpe210-v1', '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 df0eda08..6c74777b 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -27,6 +27,7 @@ function M.is_outdoor_device() 'devolo,dvl1750x', 'plasmacloud,pa300', 'plasmacloud,pa300e', + 'tplink,cpe210-v1', 'tplink,cpe220-v3', 'tplink,cpe510-v2', 'tplink,cpe510-v3', diff --git a/targets/ath79-generic b/targets/ath79-generic index 41502b7e..03e0d741 100644 --- a/targets/ath79-generic +++ b/targets/ath79-generic @@ -261,6 +261,12 @@ device('tp-link-archer-d50-v1', 'tplink_archer-d50-v1', { broken = true, -- 64M ath9k + ath10k & power LED not working }) +device('tp-link-cpe210-v1', 'tplink_cpe210-v1', { + manifest_aliases = { + 'tp-link-cpe210-v1.0', -- Upgrade from OpenWrt 19.07 + 'tp-link-cpe210-v1.1', -- 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')