Skip to content

Commit

Permalink
WS neighbor refresh update
Browse files Browse the repository at this point in the history
Fixed broken address check for unicast traffic link time update.

Change-Id: I7569471db81fd54a5afd7a80df49844d2229deb1
  • Loading branch information
Juha Heiskanen committed Aug 20, 2018
1 parent 0b2736f commit b954e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/6LoWPAN/ws/ws_llc_data_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ static void ws_llc_mac_indication_cb(const mac_api_t* api, const mcps_data_ind_t
}

//Refresh Neighbor if unicast
if (ws_utt.message_type == WS_FT_DATA && data->DstAddrMode && addr_check_broadcast(data->DstAddr, data->DstAddrMode)) {
if (ws_utt.message_type == WS_FT_DATA && data->DstAddrMode == ADDR_802_15_4_LONG) {
neighbor_info.neighbor->lifetime = neighbor_info.neighbor->link_lifetime;
etx_lqi_dbm_update(interface->id, data->mpduLinkQuality, data->signal_dbm, neighbor_info.neighbor->index);
}
Expand Down

0 comments on commit b954e56

Please sign in to comment.