From 08cbee99f9c56fa381139c10651a5992510c5512 Mon Sep 17 00:00:00 2001
From: "J. Burfeind" <git@aiyionpri.me>
Date: Mon, 18 Jul 2022 22:11:49 +0200
Subject: [PATCH] ath79-generic: (re)add wzr-hp-g300nh-s (#2551)

Note: Buffalo has introduced hardware changes without bumping the
revision number. 19.07 did not support the rb-variant so there's no need
to implement a migration for the rb-variant.
Every g300nh supported by Gluon should either be the s-variant or
been flashed wrongly.

Gone due to
commit 45c84a117bf8 ("ar71xx: drop target")
---
 docs/user/supported_devices.rst | 1 +
 targets/ath79-generic           | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index d16e04e1b..05bc8c874 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -17,6 +17,7 @@ ath79-generic
 * Buffalo
 
   - WZR-HP-AG300H / WZR-600DHP
+  - WZR-HP-G300NH (rtl8366s)
 
 * devolo
 
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 74eda3e8e..b0426ef6e 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -41,6 +41,12 @@ device('avm-fritz-wlan-repeater-450e', 'avm_fritz450e', {
 device('buffalo-wzr-hp-ag300h', 'buffalo_wzr-hp-ag300h')
 device('buffalo-wzr-600dhp', 'buffalo_wzr-600dhp')
 
+device('buffalo-wzr-hp-g300nh-rtl8366s', 'buffalo_wzr-hp-g300nh-s', {
+	manifest_aliases = {
+		'buffalo-wzr-hp-g300nh', -- Upgrade from OpenWrt 19.07
+	},
+})
+
 -- devolo
 
 device('devolo-wifi-pro-1200e', 'devolo_dvl1200e', {
-- 
GitLab