Skip to content

Commit

Permalink
device conf copy fix (ARMmbed#1502)
Browse files Browse the repository at this point in the history
device conf copy fix
  • Loading branch information
Kari Severinkangas authored Dec 4, 2017
1 parent f60268f commit 145dbdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/6LoWPAN/Thread/thread_joiner_application.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ static void device_configuration_copy(device_configuration_s *this, device_confi
return;
}
memcpy(this->eui64, configuration_ptr->eui64,8);
memcpy(this->extended_random_mac, configuration_ptr->extended_random_mac,8);
memcpy(this->mesh_local_eid, configuration_ptr->mesh_local_eid,8);
memcpy(this->vendor_stack_version, configuration_ptr->vendor_stack_version,6);
//TODO: count PSKc instead and use that
if( configuration_ptr->PSKd_ptr && configuration_ptr->PSKd_len > 0 ){
Expand Down Expand Up @@ -486,6 +488,8 @@ static void device_configuration_trace(device_configuration_s *this)
if (!this) {
return;
}
tr_debug("Mesh local eid: %s", trace_array(this->mesh_local_eid, 8));
tr_debug("extended random: %s", trace_array(this->extended_random_mac, 8));
tr_debug("uri: %s", this->provisioning_uri_ptr ? this->provisioning_uri_ptr: "(none)");
tr_debug("name: %s", this->vendor_name_ptr);
tr_debug("mode: %s", this->vendor_model_ptr);
Expand Down

0 comments on commit 145dbdf

Please sign in to comment.