ble_mesh: Check device uuid when init provisioning

This commit is contained in:
lly 2020-03-25 16:31:47 +08:00 committed by bot
parent abcfcc47ec
commit cd19f6faf1
2 changed files with 2 additions and 5 deletions

View File

@ -1750,6 +1750,8 @@ int bt_mesh_prov_init(const struct bt_mesh_prov *prov_info)
return -EINVAL;
}
__ASSERT(prov_info->uuid, "%s, Device UUID is not initialized", __func__);
/* Changed by Espressif. Use micro-ecc to generate public key now. */
key = bt_mesh_pub_key_get();
if (!key) {

View File

@ -1420,11 +1420,6 @@ int bt_mesh_proxy_init(void)
bt_mesh_gatts_conn_cb_register(&conn_callbacks);
#if defined(CONFIG_BLE_MESH_PB_GATT)
const struct bt_mesh_prov *prov = bt_mesh_prov_get();
__ASSERT(prov && prov->uuid, "%s, Device UUID is not initialized", __func__);
#endif
return bt_mesh_gatts_set_local_device_name(device_name);
}