From 34fc9544b8d01e522038022ef1755beafb83b267 Mon Sep 17 00:00:00 2001
From: citronalco <2651739+citronalco@users.noreply.github.com>
Date: Fri, 27 Aug 2021 23:15:04 +0200
Subject: [PATCH] ath79-generic: add support for TP-Link WBS210 v2 (#2299)

---
 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 9c5b534d9..efe82d1d7 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -42,6 +42,7 @@ ath79-generic
   - CPE510 (v3.0)
   - TL-WDR3600 (v1)
   - TL-WDR4300 (v1)
+  - WBS210 (v2.0)
 
 ath79-nand
 ----------
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 c11681d77..23aec7b35 100644
--- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
+++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua
@@ -32,6 +32,7 @@ function M.is_outdoor_device()
 		'tplink,cpe220-v3',
 		'tplink,cpe510-v2',
 		'tplink,cpe510-v3',
+		'tplink,wbs210-v2',
 	}) then
 		return true
 
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 92d84b720..3215c9b00 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -108,6 +108,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-wbs210-v2', 'tplink_wbs210-v2')
 
 device('tp-link-tl-wdr3600-v1', 'tplink_tl-wdr3600-v1')
 device('tp-link-tl-wdr4300-v1', 'tplink_tl-wdr4300-v1')
-- 
GitLab