Skip to content

Commit f52289f

Browse files
author
Juha Heiskanen
authored
Merge pull request ARMmbed#1790 from ARMmbed/ws_llc_neigh_update_fix
WS neighbor rfresh update
2 parents 0b2736f + b954e56 commit f52289f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/6LoWPAN/ws/ws_llc_data_service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static void ws_llc_mac_indication_cb(const mac_api_t* api, const mcps_data_ind_t
527527
}
528528

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

0 commit comments

Comments
 (0)