Skip to content

Commit 38df576

Browse files
author
Juha Heiskanen
committed
Wi-sun advertisment consistent update
Border router never set consistent rule Node set consistent when it here same pan size. Change-Id: Iea3aad92b6c146bce92f29478686b614119909f6
1 parent 81740b8 commit 38df576

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,11 +898,15 @@ static void ws_bootstrap_pan_advertisement_analyse_active(struct protocol_interf
898898
* that of the receiving node, and PAN-IE / Routing Cost better than (smaller than) that of the receiving node.
899899
*
900900
*/
901-
901+
if (cur->bootsrap_mode == ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER) {
902+
//Border router never set consistent that will guarantee that BR will send advertisment
903+
return;
904+
}
902905
#ifdef WISUN_1_0_ERRATA_FIX
903-
(void)pan_information;
904-
// All messages are considered as consistent only Solicit will cause inconsistent
905-
trickle_consistent_heard(&cur->ws_info->trickle_pan_advertisement);
906+
if (pan_information->pan_size == cur->ws_info->pan_information.pan_size) {
907+
//If same pan size information then set consistent value
908+
trickle_consistent_heard(&cur->ws_info->trickle_pan_advertisement);
909+
}
906910
#else
907911
// Wi-SUN 1.0 specified functionality, causes extra inconsistencies when we hear higher rank advertisements
908912
if (pan_information->routing_cost >= ws_bootstrap_routing_cost_calculate(cur)) {

0 commit comments

Comments
 (0)