File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -864,7 +864,7 @@ static void ws_bootstrap_pan_advertisement_analyse_active(struct protocol_interf
864
864
*
865
865
* A consistent transmission is defined as a PAN Advertisement received by a node with PAN ID and
866
866
* 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.
868
868
*
869
869
* Inconsistent:
870
870
*
@@ -998,8 +998,10 @@ static void ws_bootstrap_pan_advertisement_analyse(struct protocol_interface_inf
998
998
999
999
// Learn latest network information
1000
1000
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 );
1001
1003
1002
- if (neighbor_info . neighbor -> link_role == PRIORITY_PARENT_NEIGHBOUR ) {
1004
+ if (rpl_control_is_dodag_parent ( cur , ll_address , true) ) {
1003
1005
cur -> ws_info -> pan_information .pan_size = pan_information .pan_size ;
1004
1006
cur -> ws_info -> pan_information .routing_cost = pan_information .routing_cost ;
1005
1007
cur -> ws_info -> pan_information .rpl_routing_method = pan_information .rpl_routing_method ;
You can’t perform that action at this time.
0 commit comments