File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ extern uint16_t thread_joiner_port;
70
70
71
71
typedef enum {
72
72
THREAD_STATE_NETWORK_DISCOVER , // Not commissioned to Thread network
73
- THREAD_STATE_REATTACH , // Connected to thread network , searching for better partition
74
- THREAD_STATE_REATTACH_RETRY , // Connected to thread network , searching for better partition with REED bit is set
75
- THREAD_STATE_ATTACH_ANY , // Connected to thread network, searching for all partitions with leader connectivity
73
+ THREAD_STATE_REATTACH , // Connection to leader lost , searching for new parent
74
+ THREAD_STATE_REATTACH_RETRY , // Connection to leader lost , searching for new parent with REED bit is set
75
+ THREAD_STATE_ATTACH_ANY , // Searching for all partitions with leader connectivity
76
76
THREAD_STATE_CONNECTED , // Attached to Thread network - can't route
77
77
THREAD_STATE_CONNECTED_ROUTER , // Attached to Thread network - Routing enabled
78
78
} thread_attach_state_e ;
Original file line number Diff line number Diff line change @@ -230,7 +230,9 @@ static int thread_parent_request_build(protocol_interface_info_entry_t *cur)
230
230
}
231
231
232
232
if (cur -> thread_info -> thread_attached_state == THREAD_STATE_REATTACH ||
233
- cur -> thread_info -> thread_attached_state == THREAD_STATE_REATTACH_RETRY ) {
233
+ cur -> thread_info -> thread_attached_state == THREAD_STATE_REATTACH_RETRY ||
234
+ cur -> thread_info -> thread_attached_state == THREAD_STATE_CONNECTED ||
235
+ cur -> thread_info -> thread_attached_state == THREAD_STATE_CONNECTED_ROUTER ) {
234
236
// When doing re-attach End devices are immediately accepted as parents
235
237
scanMask |= 0x40 ;
236
238
}
You can’t perform that action at this time.
0 commit comments