Skip to content

Commit 11dd0ec

Browse files
[nrf fromtree] tests: bluetooth: tester: Make BTP CMD thread stack size kconfig
Different test layers need different stack sizes for BTP CMD thread and also AutoPTS might need to overwrite this config based on test case. Increase the stack size for mesh tests. Signed-off-by: alperen sener <[email protected]> (cherry picked from commit 3cab4fe)
1 parent 739f238 commit 11dd0ec

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

tests/bluetooth/tester/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ module = BTTESTER
99
module-str = bttester
1010
source "subsys/logging/Kconfig.template.log_config"
1111

12+
config BTTESTER_BTP_CMD_THREAD_STACK_SIZE
13+
int "BTP CMD threads stack size."
14+
default 2048
15+
help
16+
Stack size in byte used by the BTP CMD thread.
17+
1218
endmenu
1319

1420
source "Kconfig.zephyr"

tests/bluetooth/tester/overlay-mesh.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# PSA key slots; in order to make sure there is always
33
# enough key slots allocating 32 slots.
44
CONFIG_MBEDTLS_PSA_KEY_SLOT_COUNT=32
5+
CONFIG_BTTESTER_BTP_CMD_THREAD_STACK_SIZE=3072
56

67
CONFIG_BT_MESH=y
78
CONFIG_BT_MESH_RELAY=y

tests/bluetooth/tester/src/btp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_BTTESTER_LOG_LEVEL);
2424

2525
#include "btp/btp.h"
2626

27-
#define STACKSIZE 2048
27+
#define STACKSIZE CONFIG_BTTESTER_BTP_CMD_THREAD_STACK_SIZE
2828
static K_THREAD_STACK_DEFINE(stack, STACKSIZE);
2929
static struct k_thread cmd_thread;
3030

0 commit comments

Comments
 (0)