<p></p>
<p><b>@miri64</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16568#discussion_r666302257">sys/net/gnrc/network_layer/ipv6/nib/nib.c</a>:</p>
<pre style='color:#555'>> @@ -441,6 +441,20 @@ void gnrc_ipv6_nib_change_rtr_adv_iface(gnrc_netif_t *netif, bool enable)
     }
     gnrc_netif_release(netif);
 }
+
+void gnrc_ipv6_nib_change_rtr_adv_rio_iface(gnrc_netif_t *netif, bool enable)
+{
+    gnrc_netif_acquire(netif);
+    if (enable) {
+        netif->flags |= GNRC_NETIF_FLAGS_IPV6_RTR_ADV_RIO;
+    }
+    else {
+        netif->flags &= ~GNRC_NETIF_FLAGS_IPV6_RTR_ADV_RIO;
+    }
+    gnrc_netif_release(netif);
</pre>
<p>The <code>netif</code> lock is a recursive lock, so it should be safe(r) to move the release after the rtr_adv enable.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16568#pullrequestreview-702212425">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYC4YBC65O5ATVK6JX3TWXAD3ANCNFSM464QYDAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYDX5V24XIXOWU7XMJTTWXAD3A5CNFSM464QYDAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFHNOSSI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16568#pullrequestreview-702212425",
"url": "https://github.com/RIOT-OS/RIOT/pull/16568#pullrequestreview-702212425",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>