Skip to content

Commit

Permalink
Merge pull request ARMmbed#1790 from ARMmbed/ws_llc_neigh_update_fix
Browse files Browse the repository at this point in the history
WS neighbor rfresh update
  • Loading branch information
Juha Heiskanen authored Aug 20, 2018
2 parents 0b2736f + b954e56 commit f52289f
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 f52289f

Please sign in to comment.