diff --git a/subsys/bluetooth/mesh/Kconfig b/subsys/bluetooth/mesh/Kconfig index bfeb7e80e9a..47e261a3bb4 100644 --- a/subsys/bluetooth/mesh/Kconfig +++ b/subsys/bluetooth/mesh/Kconfig @@ -296,6 +296,16 @@ config BT_MESH_ADV_STACK_SIZE NOTE: This is an advanced setting and should not be changed unless absolutely necessary +config BT_MESH_ADV_PRIO + int "Mesh advertiser thread priority" + depends on BT_MESH_ADV_LEGACY + default 7 + help + Priority of bt mesh adv thread. + + NOTE: This is an advanced setting and should not be changed unless + absolutely necessary + config BT_MESH_IV_UPDATE_SEQ_LIMIT hex "Sequence number limit to start iv update" default 0x800000 diff --git a/subsys/bluetooth/mesh/adv_legacy.c b/subsys/bluetooth/mesh/adv_legacy.c index bb14ae75e61..e04e9ccbb6c 100644 --- a/subsys/bluetooth/mesh/adv_legacy.c +++ b/subsys/bluetooth/mesh/adv_legacy.c @@ -178,7 +178,8 @@ void bt_mesh_adv_init(void) { k_thread_create(&adv_thread_data, adv_thread_stack, K_KERNEL_STACK_SIZEOF(adv_thread_stack), adv_thread, - NULL, NULL, NULL, K_PRIO_COOP(7), 0, K_FOREVER); + NULL, NULL, NULL, K_PRIO_COOP(CONFIG_BT_MESH_ADV_PRIO), + 0, K_FOREVER); k_thread_name_set(&adv_thread_data, "BT Mesh adv"); }