From a1b961994a1d425bbbc284699b448b946047de1c Mon Sep 17 00:00:00 2001
From: micw <michael@wyraz.de>
Date: Thu, 12 Aug 2021 17:14:38 +0200
Subject: [PATCH] Add support for tp-link CPE510 V2 (#2287)

Co-authored-by: Michael Wyraz <michael.wyraz@evermind.de>
---
 docs/user/supported_devices.rst                          | 1 +
 package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 1 +
 targets/ath79-generic                                    | 1 +
 3 files changed, 3 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 13cc9d811..9c5b534d9 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -38,6 +38,7 @@ ath79-generic
 
   - Archer C6 (v2)
   - CPE220 (v3.0)
+  - CPE510 (v2.0)
   - CPE510 (v3.0)
   - TL-WDR3600 (v1)
   - TL-WDR4300 (v1)
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 d34c12b35..c11681d77 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()
 		'plasmacloud,pa300',
 		'plasmacloud,pa300e',
 		'tplink,cpe220-v3',
+		'tplink,cpe510-v2',
 		'tplink,cpe510-v3',
 	}) then
 		return true
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 4cd543780..92d84b720 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -106,6 +106,7 @@ device('tp-link-archer-d50-v1', 'tplink_archer-d50-v1', {
 })
 
 device('tp-link-cpe220-v3', 'tplink_cpe220-v3')
+device('tp-link-cpe510-v2', 'tplink_cpe510-v2')
 device('tp-link-cpe510-v3', 'tplink_cpe510-v3')
 
 device('tp-link-tl-wdr3600-v1', 'tplink_tl-wdr3600-v1')
-- 
GitLab