diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst index 003cdf8b..a7a8be1b 100644 --- a/docs/user/supported_devices.rst +++ b/docs/user/supported_devices.rst @@ -74,6 +74,7 @@ ath79-generic - Archer C6 (v2) - CPE210 (v1.0, v1.1, v2.0) - CPE220 (v3.0) + - CPE510 (v1.0, v1.1) - CPE510 (v2.0) - CPE510 (v3.0) - EAP225-Outdoor (v1) diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces index f76ab8ce..3bd1864c 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/020-interfaces @@ -45,6 +45,7 @@ local wan_ifname = iface_exists(wan_interfaces) if platform.match('ath79', 'generic', { 'tplink,cpe210-v1', 'tplink,cpe210-v2', + 'tplink,cpe510-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 22901aa6..680f5611 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -30,6 +30,7 @@ function M.is_outdoor_device() 'tplink,cpe210-v1', 'tplink,cpe210-v2', 'tplink,cpe220-v3', + 'tplink,cpe510-v1', 'tplink,cpe510-v2', 'tplink,cpe510-v3', 'tplink,eap225-outdoor-v1', diff --git a/targets/ath79-generic b/targets/ath79-generic index 74ed2273..b2e73d53 100644 --- a/targets/ath79-generic +++ b/targets/ath79-generic @@ -284,6 +284,12 @@ device('tp-link-cpe210-v2', 'tplink_cpe210-v2', { }, }) device('tp-link-cpe220-v3', 'tplink_cpe220-v3') +device('tp-link-cpe510-v1', 'tplink_cpe510-v1', { + manifest_aliases = { + 'tp-link-cpe510-v1.0', -- upgrade from OpenWrt 19.07 + 'tp-link-cpe510-v1.1', -- upgrade from OpenWrt 19.07 + }, +}) device('tp-link-cpe510-v2', 'tplink_cpe510-v2') device('tp-link-cpe510-v3', 'tplink_cpe510-v3')