From b954e564ad0394b4f07cec281397fc3e2b96ae4e Mon Sep 17 00:00:00 2001 From: Juha Heiskanen Date: Mon, 20 Aug 2018 17:10:31 +0300 Subject: [PATCH] WS neighbor refresh update Fixed broken address check for unicast traffic link time update. Change-Id: I7569471db81fd54a5afd7a80df49844d2229deb1 --- source/6LoWPAN/ws/ws_llc_data_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/6LoWPAN/ws/ws_llc_data_service.c b/source/6LoWPAN/ws/ws_llc_data_service.c index d4618701995..e59e1e9900b 100644 --- a/source/6LoWPAN/ws/ws_llc_data_service.c +++ b/source/6LoWPAN/ws/ws_llc_data_service.c @@ -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); }