From 61d6532014c25fce5ea99662bd9e436ba0c89190 Mon Sep 17 00:00:00 2001 From: Lingao Meng Date: Fri, 30 Sep 2022 14:44:12 +0800 Subject: [PATCH] Bluetooth: Mesh: Add missing adv_main for relay message By design, adv main set can use to send relay mesh messages but here adv main set is invoked. Add in the ended, so, adv main set only can be used when all relay adv sets busy. and this way does not cause too much delay for adv main set, due to local message will process firstly. Signed-off-by: Lingao Meng --- subsys/bluetooth/mesh/adv_ext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subsys/bluetooth/mesh/adv_ext.c b/subsys/bluetooth/mesh/adv_ext.c index 242dee6027c..368894f0880 100644 --- a/subsys/bluetooth/mesh/adv_ext.c +++ b/subsys/bluetooth/mesh/adv_ext.c @@ -321,6 +321,9 @@ void bt_mesh_adv_buf_relay_ready(void) return; } } + + /* Attempt to use the main adv set for the sending of relay messages. */ + (void)schedule_send(&adv_main); } void bt_mesh_adv_init(void)