Skip to content

Commit 0992ee2

Browse files
author
Juha Heiskanen
committed
Update Pan information data from all selected parent.
Change-Id: Iad123b6c425a24dcb7fb2b6519444ab4e03cc0d2
1 parent cafc142 commit 0992ee2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ static void ws_bootstrap_pan_advertisement_analyse_active(struct protocol_interf
864864
*
865865
* A consistent transmission is defined as a PAN Advertisement received by a node with PAN ID and
866866
* NETNAME-IE / Network Name matching that of the receiving node, and with a PAN-IE / Routing Cost
867-
* the same or worster than (bigger than or equal to) that of the receiving node.
867+
* the same or worse than (bigger than or equal to) that of the receiving node.
868868
*
869869
* Inconsistent:
870870
*
@@ -998,8 +998,10 @@ static void ws_bootstrap_pan_advertisement_analyse(struct protocol_interface_inf
998998

999999
// Learn latest network information
10001000
if (cur->bootsrap_mode != ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER && neighbor_info.neighbor) {
1001+
uint8_t ll_address[16];
1002+
ws_bootsrap_create_ll_address(ll_address, neighbor_info.neighbor->mac64);
10011003

1002-
if (neighbor_info.neighbor->link_role == PRIORITY_PARENT_NEIGHBOUR) {
1004+
if (rpl_control_is_dodag_parent(cur, ll_address, true)) {
10031005
cur->ws_info->pan_information.pan_size = pan_information.pan_size;
10041006
cur->ws_info->pan_information.routing_cost = pan_information.routing_cost;
10051007
cur->ws_info->pan_information.rpl_routing_method = pan_information.rpl_routing_method;

0 commit comments

Comments
 (0)