Skip to content

Commit 1f4625e

Browse files
author
Juha Heiskanen
committed
Call ws_secondary_parent_update inside primary set for reduce code size.
Change-Id: I727311c624c11ef1263034baabbf7463b6830725
1 parent 35b39f4 commit 1f4625e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,13 +2063,7 @@ void ws_primary_parent_update(protocol_interface_info_entry_t *interface, mac_ne
20632063
neighbor_info.ws_neighbor = ws_neighbor_class_entry_get(&interface->ws_info->neighbor_storage, neighbor->index);
20642064
ws_bootstrap_primary_parent_set(interface, &neighbor_info);
20652065

2066-
//Clear both address registration
2067-
ns_list_foreach(if_address_entry_t, address, &interface->ip_addresses) {
2068-
if (!addr_is_ipv6_link_local(address->address)) {
2069-
address->addr_reg_done = 0;
2070-
ws_address_registration_update(interface);
2071-
}
2072-
}
2066+
ws_secondary_parent_update(interface);
20732067
}
20742068
}
20752069

0 commit comments

Comments
 (0)