diff --git a/nimble/host/mesh/src/beacon.c b/nimble/host/mesh/src/beacon.c index a54cedbd7..34ea6b82a 100644 --- a/nimble/host/mesh/src/beacon.c +++ b/nimble/host/mesh/src/beacon.c @@ -169,9 +169,8 @@ static int unprovisioned_beacon_send(void) net_buf_add_u8(buf, BEACON_TYPE_UNPROVISIONED); net_buf_add_mem(buf, prov->uuid, 16); - if (prov->uri) { + if (prov->uri && bt_mesh_s1(prov->uri, uri_hash) == 0) { oob_info = prov->oob_info | BT_MESH_PROV_OOB_URI; - bt_mesh_s1(prov->uri, uri_hash); } else { oob_info = prov->oob_info; }