Skip to content

Commit 5e7a493

Browse files
author
Juha Heiskanen
committed
Update brodcast synch when here data from primary parent.
Change-Id: I1f596b3d678edf50ab0ea6594c65cfc69f95dfbc
1 parent 9e22831 commit 5e7a493

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/ws/ws_llc_data_service.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,11 @@ static void ws_llc_mac_indication_cb(const mac_api_t* api, const mcps_data_ind_t
519519
ws_neighbor_class_neighbor_unicast_time_info_update(neighbor_info.ws_neighbor, &ws_utt, data->timestamp);
520520
if (us_ie_inline) {
521521
ws_neighbor_class_neighbor_unicast_schedule_set(neighbor_info.ws_neighbor, &us_ie);
522+
523+
if (neighbor_info.neighbor->link_role == PRIORITY_PARENT_NEIGHBOUR) {
524+
// We have broadcast schedule set up set the broadcast parent schedule
525+
ns_fhss_ws_set_parent(interface->ws_info->fhss_api, neighbor_info.neighbor->mac64, &neighbor_info.ws_neighbor->fhss_data.bc_timing_info);
526+
}
522527
}
523528
//Update BT if it is part of message
524529
ws_bt_ie_t ws_bt;

0 commit comments

Comments
 (0)