From 57070a56be6080bebb879058a787713bb42a593f Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Mon, 27 Mar 2017 11:44:07 +0200
Subject: [PATCH] ipq806x: add new target and support for TP-Link Archer C2600

Completely untested for now.

Closes #835
---
 targets/ipq806x    | 16 ++++++++++++++++
 targets/targets.mk |  1 +
 2 files changed, 17 insertions(+)
 create mode 100644 targets/ipq806x

diff --git a/targets/ipq806x b/targets/ipq806x
new file mode 100644
index 000000000..c9438302b
--- /dev/null
+++ b/targets/ipq806x
@@ -0,0 +1,16 @@
+ATH10K_PACKAGES=
+
+if [ "$GLUON_ATH10K_MESH" = '11s' ]; then
+	ATH10K_PACKAGES='-kmod-ath10k kmod-ath10k-ct'
+fi
+if [ "$GLUON_ATH10K_MESH" = 'ibss' ]; then
+	ATH10K_PACKAGES='-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca99x0 ath10k-firmware-qca99x0-ct'
+fi
+
+
+# TP-Link
+
+if [ "$ATH10K_PACKAGES" ]; then
+device tp-link-archer-c2600 C2600
+packages $ATH10K_PACKAGES
+fi
diff --git a/targets/targets.mk b/targets/targets.mk
index 4b62404af..71d4f1d8f 100644
--- a/targets/targets.mk
+++ b/targets/targets.mk
@@ -10,6 +10,7 @@ $(eval $(call GluonTarget,x86,64))
 
 ifneq ($(BROKEN),)
 $(eval $(call GluonTarget,ar71xx,mikrotik)) # BROKEN: no sysupgrade support
+$(eval $(call GluonTarget,ipq806x)) # BROKEN: Untested
 $(eval $(call GluonTarget,mvebu)) # BROKEN: No AP+IBSS or 11s support
 $(eval $(call GluonTarget,ramips,mt7621)) # BROKEN: No AP+IBSS support, 11s has high packet loss
 $(eval $(call GluonTarget,ramips,mt7628)) # BROKEN: No AP+IBSS support
-- 
GitLab