1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16528 from janosbrodbeck/pr/dtls/auto_init_before_gcoap

sys/auto_init: move sock_dtls after network stack initialization
This commit is contained in:
benpicco 2021-06-05 14:54:32 +02:00 committed by GitHub
commit 029cc50e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,11 @@ void auto_init(void)
extern void lwip_bootstrap(void);
lwip_bootstrap();
}
if (IS_USED(MODULE_SOCK_DTLS)) {
LOG_DEBUG("Auto init sock_dtls.\n");
extern void sock_dtls_init(void);
sock_dtls_init();
}
if (IS_USED(MODULE_OPENTHREAD)) {
LOG_DEBUG("Bootstrapping openthread.\n");
extern void openthread_bootstrap(void);
@ -169,11 +174,6 @@ void auto_init(void)
extern void auto_init_loramac(void);
auto_init_loramac();
}
if (IS_USED(MODULE_SOCK_DTLS)) {
LOG_DEBUG("Auto init sock_dtls.\n");
extern void sock_dtls_init(void);
sock_dtls_init();
}
/* initialize USB devices */
if (IS_USED(MODULE_AUTO_INIT_USBUS)) {