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 <menglingao@xiaomi.com>
This commit is contained in:
Lingao Meng 2022-09-30 14:44:12 +08:00 committed by Fabio Baltieri
commit 61d6532014

View file

@ -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)