Skip to content

Commit

Permalink
Call ws_secondary_parent_update inside primary set for reduce code size.
Browse files Browse the repository at this point in the history
Change-Id: I727311c624c11ef1263034baabbf7463b6830725
  • Loading branch information
Juha Heiskanen committed Oct 1, 2018
1 parent 35b39f4 commit 1f4625e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2063,13 +2063,7 @@ void ws_primary_parent_update(protocol_interface_info_entry_t *interface, mac_ne
neighbor_info.ws_neighbor = ws_neighbor_class_entry_get(&interface->ws_info->neighbor_storage, neighbor->index);
ws_bootstrap_primary_parent_set(interface, &neighbor_info);

//Clear both address registration
ns_list_foreach(if_address_entry_t, address, &interface->ip_addresses) {
if (!addr_is_ipv6_link_local(address->address)) {
address->addr_reg_done = 0;
ws_address_registration_update(interface);
}
}
ws_secondary_parent_update(interface);
}
}

Expand Down

0 comments on commit 1f4625e

Please sign in to comment.