Skip to content

Commit

Permalink
gnrc_static: fix static PID assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Aug 1, 2023
1 parent 576731c commit ae28f11
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ae28f11

Please sign in to comment.