mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-20 10:51:27 +00:00
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From 3b5f6535791d14a17138e5e19d471657fa45459f Mon Sep 17 00:00:00 2001
|
|
From: Aaradhana Sahu <quic_aarasahu@quicinc.com>
|
|
Date: Tue, 14 Feb 2023 15:51:59 +0530
|
|
Subject: [PATCH] ath12k: fix firmware assert during insmod in memory segment
|
|
mode
|
|
|
|
Firmware allocate each segment of size 2MB for memory segment mode
|
|
which is calculated via num peers value send by host to firmware
|
|
during wmi init.
|
|
|
|
Currently, num peers value is 512+17 but in case of split phy this
|
|
value become 2*(512 + 17) which is 1058 due to this it's trigger
|
|
firmware assert.
|
|
|
|
So, Fix this issue by reducing num_peers value from 512 to 128.
|
|
|
|
Signed-off-by: Aaradhana Sahu <quic_aarasahu@quicinc.com>
|
|
---
|
|
drivers/net/wireless/ath/ath12k/hw.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/wireless/ath/ath12k/hw.h
|
|
+++ b/drivers/net/wireless/ath/ath12k/hw.h
|
|
@@ -17,7 +17,7 @@
|
|
/* Num VDEVS per radio */
|
|
#define TARGET_NUM_VDEVS (16 + 1)
|
|
|
|
-#define TARGET_NUM_PEERS_PDEV (512 + TARGET_NUM_VDEVS)
|
|
+#define TARGET_NUM_PEERS_PDEV (TARGET_NUM_STATIONS + TARGET_NUM_VDEVS)
|
|
|
|
/* Num of peers for Single Radio mode */
|
|
#define TARGET_NUM_PEERS_SINGLE (TARGET_NUM_PEERS_PDEV)
|
|
@@ -29,7 +29,7 @@
|
|
#define TARGET_NUM_PEERS_DBS_SBS (3 * TARGET_NUM_PEERS_PDEV)
|
|
|
|
/* Max num of stations (per radio) */
|
|
-#define TARGET_NUM_STATIONS 512
|
|
+#define TARGET_NUM_STATIONS 128
|
|
|
|
#define TARGET_NUM_PEERS(x) TARGET_NUM_PEERS_##x
|
|
#define TARGET_NUM_PEER_KEYS 2
|