Skip to content

Commit b954e56

Browse files
author
Juha Heiskanen
committed
WS neighbor refresh update
Fixed broken address check for unicast traffic link time update. Change-Id: I7569471db81fd54a5afd7a80df49844d2229deb1
1 parent 0b2736f commit b954e56

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)