@@ -663,17 +663,17 @@ static uint16_t mle_router_synch(protocol_interface_info_entry_t *cur, const uin
663
663
if (retrans ) {
664
664
if (destAddress ) {
665
665
timeout .retrans_max = 3 ;
666
- timeout .timeout_init = 1 ;
667
- timeout .timeout_max = 3 ;
666
+ timeout .timeout_init = 2 ;
667
+ timeout .timeout_max = 4 ;
668
668
} else {
669
669
timeout .retrans_max = 2 ;
670
- timeout .timeout_init = 2 ;
670
+ timeout .timeout_init = 4 ;
671
671
timeout .timeout_max = 4 ;
672
672
}
673
673
} else {
674
674
timeout .retrans_max = 1 ;
675
- timeout .timeout_init = 1 ;
676
- timeout .timeout_max = 3 ;
675
+ timeout .timeout_init = 2 ;
676
+ timeout .timeout_max = 4 ;
677
677
}
678
678
679
679
timeout .delay = delay ;
@@ -706,7 +706,7 @@ static int mle_router_accept_request_build(protocol_interface_info_entry_t *cur,
706
706
bufId = mle_service_msg_allocate (cur -> id , 64 , true,type );
707
707
timeout .retrans_max = 2 ;
708
708
timeout .timeout_init = 2 ;
709
- timeout .timeout_max = 2 ;
709
+ timeout .timeout_max = 4 ;
710
710
}
711
711
712
712
if (bufId == 0 ) {
@@ -840,12 +840,14 @@ static bool mle_parent_link_req_cb(int8_t interface_id, uint16_t msgId, bool use
840
840
if (usedAllRetries ) {
841
841
switch (cur -> nwk_bootstrap_state ) {
842
842
case ER_MLE_LINK_REQ :
843
- case ER_ROUTER_SYNCH :
844
843
case ER_MLE_LINK_ADDRESS_SYNCH :
845
844
case ER_MLE_LINK_SHORT_SYNCH :
846
845
tr_debug ("Link synch fail %u" , cur -> nwk_bootstrap_state );
847
846
bootsrap_next_state_kick (ER_BOOTSTRAP_CONNECTION_DOWN , cur );
848
847
break ;
848
+ case ER_ROUTER_SYNCH :
849
+ bootsrap_next_state_kick (ER_RPL_MC , cur );
850
+ break ;
849
851
default :
850
852
break ;
851
853
}
@@ -869,6 +871,7 @@ static bool mle_accept_request_cb(int8_t interface_id, uint16_t msgId, bool used
869
871
//If message has been sent by MLE service sends MLE reject to clear link
870
872
if (mle_service_check_msg_sent (msgId )) {
871
873
uint8_t * address_ptr = mle_service_get_msg_destination_address_pointer (msgId );
874
+ tr_debug ("No accept for Accept/Request" );
872
875
mle_service_reject_message_build (cur -> id , address_ptr , false);
873
876
}
874
877
return false;
@@ -2728,6 +2731,7 @@ static void protocol_6lowpan_generate_link_reject(protocol_interface_info_entry_
2728
2731
address [8 ] ^= 2 ;
2729
2732
}
2730
2733
if (mac_helper_default_security_level_get (cur )) {
2734
+ tr_debug ("Drop link by asymmetric security" );
2731
2735
mle_service_reject_message_build (cur -> id , address , false);
2732
2736
return ;
2733
2737
}
0 commit comments