Skip to content

Commit 9181ae4

Browse files
LingaoMnashif
authored andcommitted
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 3f9a78e commit 9181ae4

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
@@ -117,6 +117,14 @@ int bt_mesh_pb_gatt_close(struct bt_conn *conn)
117117

118118
static int link_accept(const struct prov_bearer_cb *cb, void *cb_data)
119119
{
120+
int err;
121+
122+
err = bt_mesh_adv_enable();
123+
if (err) {
124+
BT_ERR("Failed enabling advertiser");
125+
return err;
126+
}
127+
120128
(void)bt_mesh_pb_gatt_enable();
121129
bt_mesh_adv_update();
122130

0 commit comments

Comments
 (0)