From ae28f11e3a0b391ad50783090ff72a23bcbb259b Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 1 Aug 2023 23:27:20 +0200 Subject: [PATCH] gnrc_static: fix static PID assignment --- .../network_layer/ipv6/static_addr/gnrc_ipv6_static_addr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/gnrc/network_layer/ipv6/static_addr/gnrc_ipv6_static_addr.c b/sys/net/gnrc/network_layer/ipv6/static_addr/gnrc_ipv6_static_addr.c index 71c9b1b73800..453692391e11 100644 --- a/sys/net/gnrc/network_layer/ipv6/static_addr/gnrc_ipv6_static_addr.c +++ b/sys/net/gnrc/network_layer/ipv6/static_addr/gnrc_ipv6_static_addr.c @@ -119,16 +119,16 @@ void auto_init_gnrc_ipv6_static_addr(void) if (gnrc_netif_highlander() || gnrc_netif_numof() == 1) { upstream = gnrc_netif_iter(NULL); - if (IS_ACTIVE(CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM)) { + if (CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM) { assert(upstream->pid == CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM); } } else { - if (IS_ACTIVE(CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM)) { + if (CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM) { upstream = gnrc_netif_get_by_pid(CONFIG_GNRC_IPV6_STATIC_ADDR_UPSTREAM); } - if (IS_ACTIVE(CONFIG_GNRC_IPV6_STATIC_ADDR_DOWNSTREAM)) { + if (CONFIG_GNRC_IPV6_STATIC_ADDR_DOWNSTREAM) { downstream = gnrc_netif_get_by_pid(CONFIG_GNRC_IPV6_STATIC_ADDR_DOWNSTREAM); }