Skip to content

Commit 1807c01

Browse files
mle class initialisation (ARMmbed#1488)
done with table size of one less than device description table size, as the last entry in device description table is reserved for for key id 2. This allows discovery responses to be sent even when the neighbour table is full.
1 parent d809831 commit 1807c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/6LoWPAN/Thread/thread_bootstrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ int8_t thread_mle_class_init(int8_t interface_id)
247247
return -1;
248248
}
249249

250-
if (mle_class_init(interface_id, buffer.device_decription_table_size, &thread_neighbor_remove, &thread_child_keep_alive, &thread_interface_is_active) != 0) {
250+
if (mle_class_init(interface_id, buffer.device_decription_table_size - 1, &thread_neighbor_remove, &thread_child_keep_alive, &thread_interface_is_active) != 0) {
251251
return -1;
252252
}
253253

0 commit comments

Comments
 (0)