Skip to content

Commit c1bfeb6

Browse files
author
Juha Heiskanen
committed
Added print for debugging why SRH validate check fail.
Change-Id: I57c8edfb35a3e23de108b2c24109c62333f3b54e
1 parent fc429e7 commit c1bfeb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ uint16_t ws_etx_read(protocol_interface_info_entry_t *interface, addrtype_t addr
634634

635635
mac_neighbor_table_entry_t *mac_neighbor = mac_neighbor_table_address_discover(mac_neighbor_info(interface), addr_ptr + PAN_ID_LEN, addr_type);
636636
if (!mac_neighbor) {
637+
tr_debug("ws_etx_read Unknown Neighbor");
637638
return 0xffff;
638639
}
639640
attribute_index = mac_neighbor->index;
@@ -650,6 +651,9 @@ uint16_t ws_etx_read(protocol_interface_info_entry_t *interface, addrtype_t addr
650651
!ws_neighbour->candidate_parent) {
651652
// if RSL value is not good enough candidate parent flag is removed and device not accepted as parent
652653
//tr_debug("ws_etx_read not valid parent");
654+
if (etx_entry && etx_entry->etx_samples) {
655+
tr_debug("ws_etx_read not valid %u RSL IN(%u), %u RSL out(%u)", ws_neighbor_class_rsl_in_get(ws_neighbour), ws_neighbour->rsl_in, ws_neighbor_class_rsl_out_get(ws_neighbour), ws_neighbour->rsl_out);
656+
}
653657
return 0xffff;
654658
}
655659

@@ -663,6 +667,7 @@ uint16_t ws_etx_read(protocol_interface_info_entry_t *interface, addrtype_t addr
663667
} else {
664668
if (!ws_neighbour->broadcast_timing_info_stored) {
665669
//Global shedule is stored already
670+
tr_debug("ws_etx_read not valid NO BTI");
666671
return 0xffff;
667672
}
668673
}

0 commit comments

Comments
 (0)