From 1a570caacccc95e71eb6aeabd306081be783d0d4 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Mon, 11 Oct 2021 16:00:32 +0200 Subject: [PATCH] nimble: allow to override netif thread priority --- pkg/nimble/netif/nimble_netif.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/nimble/netif/nimble_netif.c b/pkg/nimble/netif/nimble_netif.c index e6a6937920..615935edc1 100644 --- a/pkg/nimble/netif/nimble_netif.c +++ b/pkg/nimble/netif/nimble_netif.c @@ -51,6 +51,10 @@ #define NETTYPE GNRC_NETTYPE_UNDEF #endif +#ifndef NIMBLE_NETIF_PRIO +#define NIMBLE_NETIF_PRIO GNRC_NETIF_PRIO +#endif + /* thread flag used for signaling transmit readiness */ #define FLAG_TX_UNSTALLED (1u << 13) #define FLAG_TX_NOTCONN (1u << 12) @@ -556,7 +560,7 @@ void nimble_netif_init(void) assert(res == 0); (void)res; - gnrc_netif_create(&_netif, _stack, sizeof(_stack), GNRC_NETIF_PRIO, + gnrc_netif_create(&_netif, _stack, sizeof(_stack), NIMBLE_NETIF_PRIO, "nimble_netif", &_nimble_netdev_dummy, &_nimble_netif_ops); }