net: openthread: Update OpenThread version
Use the newest version of the OpenThread project, as updated in https://github.com/zephyrproject-rtos/openthread/pull/2. Introduce the following fixes along with the update (they're squashed to retain bisectability of OT samples): * Update configs and flags used Some OT configs were renamed, some new were introduced that Zephyr port needs to set. * Add entropy platform driver OpenThreads `random` platform subsystem was replaced with `entropy` subsystem which is supposed to serve as an entropy source for the generic OpenThread's random generator. * Halt OT thread when OT command is processed OpenThread can currently be processed from two threads - a genuine OpenThread thread and shell thread, which processes CLI commands. This could cause trouble, when context was switched during OT command processing (i.e. switched to process an incomming OT message, while still in unfinished command handler). In result, it was not possible to turn the commissioner role on via CLI, as the commissioner petition response was handled before the Commissioner::Start function finished its execution (if the petitioner is also the network leader, all messages are passed internally within the stack). Fix this by suspending the OT thread for the time of an OT command processing. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
6ece516d7b
commit
83bb911a21
9 changed files with 107 additions and 59 deletions
|
@ -30,6 +30,8 @@ struct openthread_context {
|
|||
struct pkt_list_elem pkt_list[CONFIG_OPENTHREAD_PKT_LIST_SIZE];
|
||||
};
|
||||
|
||||
k_tid_t openthread_thread_id_get(void);
|
||||
|
||||
#define OPENTHREAD_L2_CTX_TYPE struct openthread_context
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue