Skip to content
Snippets Groups Projects
Commit 2ddf3c74 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

sys: net: fix GNRC_IPV6_NETIF_FLAGS_IS_WIRED assignment

parent 14f3a11d
No related branches found
No related tags found
No related merge requests found
...@@ -756,10 +756,10 @@ void gnrc_ipv6_netif_init_by_dev(void) ...@@ -756,10 +756,10 @@ void gnrc_ipv6_netif_init_by_dev(void)
} }
if (gnrc_netapi_get(ifs[i], NETOPT_IS_WIRED, 0, &tmp, sizeof(int)) > 0) { if (gnrc_netapi_get(ifs[i], NETOPT_IS_WIRED, 0, &tmp, sizeof(int)) > 0) {
ipv6_if->flags = GNRC_IPV6_NETIF_FLAGS_IS_WIRED; ipv6_if->flags |= GNRC_IPV6_NETIF_FLAGS_IS_WIRED;
} }
else { else {
ipv6_if->flags = 0; ipv6_if->flags &= ~GNRC_IPV6_NETIF_FLAGS_IS_WIRED;
} }
mutex_unlock(&ipv6_if->mutex); mutex_unlock(&ipv6_if->mutex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment