From b64ce62a8f409726aba651c6ae634011cb2195bb Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sat, 27 Jun 2020 11:09:41 +0200 Subject: [PATCH] pkg/lwip: fixes the netif handling for atwinc15x0 With PR #14349 the double stack mode for lwIP was activated. The ATWINC15x0 driver was provided before the changes in PR #14349 but merged after that. Therefore, the changes for the driver were not taken into account anymore and have to be applied accordingly. --- pkg/lwip/contrib/lwip.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkg/lwip/contrib/lwip.c b/pkg/lwip/contrib/lwip.c index 3f92bf44ad..d1f6c2c950 100644 --- a/pkg/lwip/contrib/lwip.c +++ b/pkg/lwip/contrib/lwip.c @@ -210,19 +210,11 @@ void lwip_bootstrap(void) #elif defined(MODULE_ATWINC15X0) for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) { atwinc15x0_setup(&atwinc15x0_devs[i], &atwinc15x0_params[i]); -#ifdef MODULE_LWIP_IPV4 - if (netif_add(&netif[0], IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY, - &atwinc15x0_devs[i], lwip_netdev_init, tcpip_input) == NULL) { + if (_netif_add(&netif[0], &atwinc15x0_devs[i], lwip_netdev_init, + tcpip_input) == NULL) { DEBUG("Could not add atwinc15x0 device\n"); return; } -#else /* MODULE_LWIP_IPV4 */ - if (netif_add(&netif[0], &atwinc15x0_devs[i], lwip_netdev_init, - tcpip_input) == NULL) { - DEBUG("Could not add atwinc15x0 device\n"); - return; - } -#endif /* MODULE_LWIP_IPV4 */ } #elif defined(MODULE_ENC28J60) for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) {