Skip to content

Commit 4ac8a82

Browse files
committed
Bluetooth: Mesh: Fix missing enable adv thread
When user only use pb-gatt provisioning, which unable to send out connectable advertising, due to adv thread not started. Signed-off-by: Lingao Meng <[email protected]>
1 parent 68a6a3e commit 4ac8a82

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

subsys/bluetooth/mesh/pb_gatt.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ int bt_mesh_pb_gatt_close(struct bt_conn *conn)
119119

120120
static int link_accept(const struct prov_bearer_cb *cb, void *cb_data)
121121
{
122+
int err;
123+
124+
err = bt_mesh_adv_enable();
125+
if (err) {
126+
BT_ERR("Failed enabling advertiser");
127+
return err;
128+
}
129+
122130
(void)bt_mesh_proxy_prov_enable();
123131
bt_mesh_adv_update();
124132

0 commit comments

Comments
 (0)