1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

gnrc/rpl: auto-init RPL if there is only a single interface

This commit is contained in:
Benjamin Valentin 2021-12-03 15:34:17 +01:00
parent 48fc63e0ae
commit 11672ac5e4

View File

@ -28,7 +28,7 @@
void auto_init_gnrc_rpl(void)
{
if (gnrc_netif_highlander()) {
if (gnrc_netif_highlander() || gnrc_netif_numof() == 1) {
gnrc_netif_t *netif = gnrc_netif_iter(NULL);
if (netif == NULL) {
/* XXX this is just a work-around ideally this would happen with