Skip to content

Commit

Permalink
Fixed missing address re registration.
Browse files Browse the repository at this point in the history
Address re registration was totally missing and here we fix this major bug.

Change-Id: I3880ea9587cd2e4177f038f83c79019fdce1d54d
  • Loading branch information
Juha Heiskanen committed Apr 11, 2019
1 parent 7d8dab4 commit be18109
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ static void ws_bootstrap_address_notification_cb(struct protocol_interface_info_
break;
}
}
} else if (reason == ADDR_CALLBACK_TIMER) {
tr_debug("Address Re registration %s", trace_ipv6(addr->address));

if (!interface->ws_info->address_registration_event_active) {
interface->ws_info->address_registration_event_active = true;
tr_info("Register ARO");
ws_bootsrap_event_trig(WS_ADDRESS_ADDED, interface->bootStrapId, ARM_LIB_LOW_PRIORITY_EVENT, NULL);
}
} else {
tr_debug("Address notification addr: %s reason: %d", trace_ipv6(addr->address), reason);
}
Expand Down
1 change: 1 addition & 0 deletions source/Core/ns_address_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ void addr_fast_timer(protocol_interface_info_entry_t *cur, uint_fast16_t ticks)
}
#endif
} else {
addr->addr_reg_done = 0;
addr_cb(cur, addr, ADDR_CALLBACK_TIMER);
}

Expand Down

0 comments on commit be18109

Please sign in to comment.