mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 16:11:24 +00:00
mesh: fix loading provisioning data
This commit is contained in:
parent
574ec93036
commit
a406d8c208
@ -136,6 +136,12 @@ static void add_network_key_from_provisioning_data(const mesh_provisioning_data_
|
|||||||
// get single instance
|
// get single instance
|
||||||
memset(network_key, 0, sizeof(mesh_network_key_t));
|
memset(network_key, 0, sizeof(mesh_network_key_t));
|
||||||
|
|
||||||
|
// NID
|
||||||
|
network_key->nid = provisioning_data->nid;
|
||||||
|
|
||||||
|
// PrivacyKey
|
||||||
|
memcpy(network_key->privacy_key, provisioning_data->privacy_key, 16);
|
||||||
|
|
||||||
// EncryptionKey
|
// EncryptionKey
|
||||||
memcpy(network_key->encryption_key, provisioning_data->encryption_key, 16);
|
memcpy(network_key->encryption_key, provisioning_data->encryption_key, 16);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user