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

Merge pull request #14374 from gschorcht/drivers/atwinc15x0_fix_lwip_netdev

pkg/lwip: fixes the netif handling for the atwinc15x0 driver
This commit is contained in:
Alexandre Abadie 2020-06-28 18:45:29 +02:00 committed by GitHub
commit 18b0bdaa81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View File

@ -1,6 +1,6 @@
USEMODULE += boards_common_arduino-mkr
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += atwinc15x0
endif

View File

@ -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++) {