Skip to content

Commit 145dbdf

Browse files
author
Kari Severinkangas
authored
device conf copy fix (ARMmbed#1502)
device conf copy fix
1 parent f60268f commit 145dbdf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/6LoWPAN/Thread/thread_joiner_application.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ static void device_configuration_copy(device_configuration_s *this, device_confi
450450
return;
451451
}
452452
memcpy(this->eui64, configuration_ptr->eui64,8);
453+
memcpy(this->extended_random_mac, configuration_ptr->extended_random_mac,8);
454+
memcpy(this->mesh_local_eid, configuration_ptr->mesh_local_eid,8);
453455
memcpy(this->vendor_stack_version, configuration_ptr->vendor_stack_version,6);
454456
//TODO: count PSKc instead and use that
455457
if( configuration_ptr->PSKd_ptr && configuration_ptr->PSKd_len > 0 ){
@@ -486,6 +488,8 @@ static void device_configuration_trace(device_configuration_s *this)
486488
if (!this) {
487489
return;
488490
}
491+
tr_debug("Mesh local eid: %s", trace_array(this->mesh_local_eid, 8));
492+
tr_debug("extended random: %s", trace_array(this->extended_random_mac, 8));
489493
tr_debug("uri: %s", this->provisioning_uri_ptr ? this->provisioning_uri_ptr: "(none)");
490494
tr_debug("name: %s", this->vendor_name_ptr);
491495
tr_debug("mode: %s", this->vendor_model_ptr);

0 commit comments

Comments
 (0)