Skip to content

Commit 0421502

Browse files
author
Juha Heiuskanen
committed
Asynch message advertiment enable added to DAO done when disabled.
1 parent 0374f74 commit 0421502

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ static parent_info_t *ws_bootstrap_candidate_parent_get(struct protocol_interfac
116116
static void ws_bootstrap_candidate_parent_sort(struct protocol_interface_info_entry *cur, parent_info_t *new_entry);
117117
static void ws_bootstrap_packet_congestion_init(protocol_interface_info_entry_t *cur);
118118

119+
static void ws_bootstrap_asynch_trickle_stop(protocol_interface_info_entry_t *cur);
120+
static void ws_bootstrap_advertise_start(protocol_interface_info_entry_t *cur);
121+
119122
typedef enum {
120123
WS_PARENT_SOFT_SYNCH = 0, /**< let FHSS make decision if synchronization is needed*/
121124
WS_PARENT_HARD_SYNCH, /**< Synch FHSS with latest synch information*/
@@ -2579,6 +2582,12 @@ static void ws_bootstrap_rpl_callback(rpl_event_t event, void *handle)
25792582
// After successful DAO ACK connection to border router is verified
25802583
cur->ws_info->pan_timeout_timer = cur->ws_info->cfg->timing.pan_timeout;
25812584

2585+
2586+
}
2587+
2588+
if (!cur->ws_info->trickle_pa_running || !cur->ws_info->trickle_pc_running) {
2589+
//Enable wi-sun asynch adverisment
2590+
ws_bootstrap_advertise_start(cur);
25822591
}
25832592

25842593
ws_set_fhss_hop(cur);

0 commit comments

Comments
 (0)