Skip to content

Commit ef88f64

Browse files
author
Juha Heiskanen
committed
Removed rank comprae and also probe 5 best on the list.
Change-Id: Iaf1d58e541c0f793d11c5f4ec4fa03faf7575795
1 parent a2887d6 commit ef88f64

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

source/RPL/rpl_upward.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,16 +1638,7 @@ bool rpl_instance_address_is_candidate(rpl_instance_t *instance, const uint8_t *
16381638

16391639
ns_list_foreach(rpl_neighbour_t, neighbour, &instance->candidate_neighbours) {
16401640
if (addr_ipv6_equal(neighbour->ll_address, ipv6_addr)) {
1641-
1642-
if (!instance->current_dodag_version) {
1643-
return true;
1644-
}
1645-
1646-
if (rpl_rank_compare(instance->current_dodag_version->dodag, neighbour->rank, instance->current_rank) & RPL_CMP_LESS) {
1647-
return true;
1648-
}
1649-
1650-
return false;
1641+
return true;
16511642
}
16521643
list_compared++;
16531644
if (candidate_amount && list_compared >= candidate_amount) {

0 commit comments

Comments
 (0)