Skip to content

Commit

Permalink
Wi-sun advertisment consistent update
Browse files Browse the repository at this point in the history
Border router never set consistent rule

Node set consistent when it here same pan size.

Change-Id: Iea3aad92b6c146bce92f29478686b614119909f6
  • Loading branch information
Juha Heiskanen committed Dec 11, 2019
1 parent 81740b8 commit 38df576
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,15 @@ static void ws_bootstrap_pan_advertisement_analyse_active(struct protocol_interf
* that of the receiving node, and PAN-IE / Routing Cost better than (smaller than) that of the receiving node.
*
*/

if (cur->bootsrap_mode == ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER) {
//Border router never set consistent that will guarantee that BR will send advertisment
return;
}
#ifdef WISUN_1_0_ERRATA_FIX
(void)pan_information;
// All messages are considered as consistent only Solicit will cause inconsistent
trickle_consistent_heard(&cur->ws_info->trickle_pan_advertisement);
if (pan_information->pan_size == cur->ws_info->pan_information.pan_size) {
//If same pan size information then set consistent value
trickle_consistent_heard(&cur->ws_info->trickle_pan_advertisement);
}
#else
// Wi-SUN 1.0 specified functionality, causes extra inconsistencies when we hear higher rank advertisements
if (pan_information->routing_cost >= ws_bootstrap_routing_cost_calculate(cur)) {
Expand Down

0 comments on commit 38df576

Please sign in to comment.