1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/auto_init: move sock_dtls after network stack initialization

This commit is contained in:
János Brodbeck 2021-06-04 18:13:33 +02:00
parent 8482434bdf
commit ae39ffd9f8
No known key found for this signature in database
GPG Key ID: 65C193B0D8D1BCE6

View File

@ -108,6 +108,11 @@ void auto_init(void)
extern void lwip_bootstrap(void); extern void lwip_bootstrap(void);
lwip_bootstrap(); 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)) { if (IS_USED(MODULE_OPENTHREAD)) {
LOG_DEBUG("Bootstrapping openthread.\n"); LOG_DEBUG("Bootstrapping openthread.\n");
extern void openthread_bootstrap(void); extern void openthread_bootstrap(void);
@ -169,11 +174,6 @@ void auto_init(void)
extern void auto_init_loramac(void); extern void auto_init_loramac(void);
auto_init_loramac(); 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 */ /* initialize USB devices */
if (IS_USED(MODULE_AUTO_INIT_USBUS)) { if (IS_USED(MODULE_AUTO_INIT_USBUS)) {