Skip to content

Commit dcebff9

Browse files
author
Juha Heiskanen
committed
Use RPL parent soft filtering only after bootstrap.
Change-Id: I30a5140417bfc27f00d578f6ead00e2dc7052e69
1 parent 523593e commit dcebff9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,11 @@ static void ws_rpl_prefix_callback(prefix_entry_t *prefix, void *handle, uint8_t
21192119

21202120
static bool ws_rpl_candidate_soft_filtering(protocol_interface_info_entry_t *cur, struct rpl_instance *instance)
21212121
{
2122+
//If bootstrap active we not need any candidate filtering
2123+
if ((cur->lowpan_info & INTERFACE_NWK_BOOTSRAP_ACTIVE)) {
2124+
return true;
2125+
}
2126+
21222127
//Already many candidates
21232128
if (rpl_control_candidate_list_size(cur, instance) > cur->ws_info->rpl_parent_candidate_max) {
21242129
return false;

0 commit comments

Comments
 (0)