Skip to content

Commit 4bb8b54

Browse files
author
Juha Heiskanen
committed
Wi-sun Probe update
Stack generate 3 possible probe to new neighbor. Change-Id: Iaf4177a2d025ace9797a0f5dd88219781bf9ae41
1 parent 2183869 commit 4bb8b54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,8 @@ static bool ws_neighbor_entry_nud_notify(mac_neighbor_table_entry_t *entry_ptr,
995995
if (time_from_start > compare_random) {
996996
activate_nud = true;
997997
}
998-
} else if (etx_entry->etx_samples < 1) {
999-
uint32_t compare_random = randLIB_get_random_in_range(0, 8);
998+
} else if (etx_entry->etx_samples < 3) {
999+
uint32_t compare_random = randLIB_get_random_in_range(1 << etx_entry->etx_samples, 8 << etx_entry->etx_samples);
10001000
if (time_from_start > compare_random) {
10011001
tr_debug("Link Probe test %u with jitter", compare_random);
10021002
activate_nud = true;

0 commit comments

Comments
 (0)