From 1b3feecfd83eb76639fde933d0d1cfd3c5af7774 Mon Sep 17 00:00:00 2001 From: Nidhal BEN OTHMEN Date: Wed, 12 Feb 2025 09:05:49 +0100 Subject: [PATCH] soc: stm32wbax: hci_if: Increase the link layer thread priority Increase the link layer thread priority to be more than the BLE CTRL thread and more than the Zephyr BLE stack threads. Signed-off-by: Nidhal BEN OTHMEN --- soc/st/stm32/stm32wbax/hci_if/host_stack_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soc/st/stm32/stm32wbax/hci_if/host_stack_if.c b/soc/st/stm32/stm32wbax/hci_if/host_stack_if.c index 3769b462f91..97479b2eff9 100644 --- a/soc/st/stm32/stm32wbax/hci_if/host_stack_if.c +++ b/soc/st/stm32/stm32wbax/hci_if/host_stack_if.c @@ -21,7 +21,8 @@ uint8_t ll_state_busy; #define BLE_CTRL_THREAD_STACK_SIZE (256 * 7) #define LL_THREAD_STACK_SIZE (256 * 7) #define BLE_CTRL_THREAD_PRIO (14) -#define LL_THREAD_PRIO (14) +/* The LL thread has higher priority than the BLE CTRL thread and the Zephyr BLE stack threads */ +#define LL_THREAD_PRIO (4) K_THREAD_STACK_DEFINE(ble_ctrl_work_area, BLE_CTRL_THREAD_STACK_SIZE); K_THREAD_STACK_DEFINE(ll_work_area, LL_THREAD_STACK_SIZE);