From 50130c3832667c8b4cf48b7ea7ff624ccf6c83b3 Mon Sep 17 00:00:00 2001
From: David Bauer <mail@david-bauer.net>
Date: Wed, 10 Aug 2022 17:05:51 +0200
Subject: [PATCH] gluon-core: increase ath10k peer limit (#2607)

Increase the peer limit for ath10k-ct from 32 to 96 STAs like it is set
for the non-ct firmware / driver. In order to make this work with the
memory constraints of the wireless platform, reduce the number of
concurrent vdevs to the maximum Gluon uses (4).

Closes #2604

Signed-off-by: David Bauer <mail@david-bauer.net>

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 .../files/etc/hotplug.d/firmware/20-gluon-ath10k-fwcfg   | 9 +++++++++
 package/gluon-core/files/lib/gluon/ath10k-fwcfg.txt      | 4 ++++
 2 files changed, 13 insertions(+)
 create mode 100644 package/gluon-core/files/etc/hotplug.d/firmware/20-gluon-ath10k-fwcfg
 create mode 100644 package/gluon-core/files/lib/gluon/ath10k-fwcfg.txt

diff --git a/package/gluon-core/files/etc/hotplug.d/firmware/20-gluon-ath10k-fwcfg b/package/gluon-core/files/etc/hotplug.d/firmware/20-gluon-ath10k-fwcfg
new file mode 100644
index 000000000..29cfa9e56
--- /dev/null
+++ b/package/gluon-core/files/etc/hotplug.d/firmware/20-gluon-ath10k-fwcfg
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -e "/lib/firmware/$FIRMWARE" ] && exit 0
+
+case "$FIRMWARE" in
+ath10k/fwcfg*)
+	cp "/lib/gluon/ath10k-fwcfg.txt" "/lib/firmware/$FIRMWARE"
+	;;
+esac
diff --git a/package/gluon-core/files/lib/gluon/ath10k-fwcfg.txt b/package/gluon-core/files/lib/gluon/ath10k-fwcfg.txt
new file mode 100644
index 000000000..5171af7bb
--- /dev/null
+++ b/package/gluon-core/files/lib/gluon/ath10k-fwcfg.txt
@@ -0,0 +1,4 @@
+vdevs = 4
+peers = 96
+active_peers = 96
+stations = 96
-- 
GitLab