1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17333 from benpicco/gnrc/rpl-auto_init

gnrc/rpl: auto-init RPL if there is only a single interface
This commit is contained in:
benpicco 2021-12-04 11:07:01 +01:00 committed by GitHub
commit f9f95534f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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