From a6bce7959dc9a051d3ba0bbefd8d8ec652c85600 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Sat, 29 Dec 2018 19:31:51 +0100
Subject: [PATCH] ramips-mt76x8: remove VoCore 2 BROKEN flag again

The driver has stablized enough to officially support ramips-mt76x8 devices
again. At least remove BROKEN for VoCore 2 (as it was supported before).
---
 docs/index.rst        | 7 +++++++
 targets/ramips-mt76x8 | 4 ++++
 targets/targets.mk    | 2 +-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/docs/index.rst b/docs/index.rst
index a73a233c8..e71a8436b 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -366,6 +366,13 @@ ramips-mt7621
   - WG3526-16M [#80211s]_
   - WG3526-32M [#80211s]_
 
+ramips-mt76x8
+^^^^^^^^^^^^^
+
+* VoCore
+
+  - VoCore2 [#80211s]_
+
 ramips-rt305x
 ^^^^^^^^^^^^^
 
diff --git a/targets/ramips-mt76x8 b/targets/ramips-mt76x8
index d0e001358..45e009774 100644
--- a/targets/ramips-mt76x8
+++ b/targets/ramips-mt76x8
@@ -1,3 +1,5 @@
+if [ "$BROKEN" ]; then
+
 # GL.iNet
 
 device gl-mt300n-v2 gl-mt300n-v2
@@ -13,6 +15,8 @@ device tp-link-tl-wr-841n-v13 tl-wr841n-v13
 factory
 extra_image -squashfs-tftp-recovery -bootloader .bin
 
+fi
+
 
 # VoCore 2
 
diff --git a/targets/targets.mk b/targets/targets.mk
index ea7e5cd5f..9826f4720 100644
--- a/targets/targets.mk
+++ b/targets/targets.mk
@@ -15,6 +15,7 @@ $(eval $(call GluonTarget,x86,64))
 ifneq ($(GLUON_WLAN_MESH_11s)$(BROKEN),)
 $(eval $(call GluonTarget,ipq40xx))
 $(eval $(call GluonTarget,ramips,mt7620))
+$(eval $(call GluonTarget,ramips,mt76x8))
 $(eval $(call GluonTarget,ramips,rt305x))
 endif
 
@@ -23,5 +24,4 @@ $(eval $(call GluonTarget,ar71xx,mikrotik)) # BROKEN: no sysupgrade support
 $(eval $(call GluonTarget,brcm2708,bcm2710)) # BROKEN: Untested
 $(eval $(call GluonTarget,ipq806x)) # BROKEN: unstable wifi drivers
 $(eval $(call GluonTarget,mvebu,cortexa9)) # BROKEN: No AP+IBSS or 11s support
-$(eval $(call GluonTarget,ramips,mt76x8)) # BROKEN: unstable WiFi
 endif
-- 
GitLab