mesh: let provisioning_done generate initial ecc key

This commit is contained in:
Matthias Ringwald 2019-10-15 22:32:29 +02:00
parent 2693e1cf3a
commit af1eaed4b1

View File

@ -852,11 +852,8 @@ void provisioning_device_init(void){
pb_transport_cid = MESH_PB_TRANSPORT_INVALID_CID;
// init provisioning state
// init provisioning state and generate ecc key
provisioning_done();
// generate public key
btstack_crypto_ecc_p256_generate_key(&prov_ecc_p256_request, prov_ec_q, &prov_key_generated, NULL);
}
void provisioning_device_register_packet_handler(btstack_packet_handler_t packet_handler){