mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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.
This commit is contained in:
parent
81b7709ee3
commit
b64ce62a8f
@ -210,19 +210,11 @@ void lwip_bootstrap(void)
|
|||||||
#elif defined(MODULE_ATWINC15X0)
|
#elif defined(MODULE_ATWINC15X0)
|
||||||
for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) {
|
for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) {
|
||||||
atwinc15x0_setup(&atwinc15x0_devs[i], &atwinc15x0_params[i]);
|
atwinc15x0_setup(&atwinc15x0_devs[i], &atwinc15x0_params[i]);
|
||||||
#ifdef MODULE_LWIP_IPV4
|
if (_netif_add(&netif[0], &atwinc15x0_devs[i], lwip_netdev_init,
|
||||||
if (netif_add(&netif[0], IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY,
|
tcpip_input) == NULL) {
|
||||||
&atwinc15x0_devs[i], lwip_netdev_init, tcpip_input) == NULL) {
|
|
||||||
DEBUG("Could not add atwinc15x0 device\n");
|
DEBUG("Could not add atwinc15x0 device\n");
|
||||||
return;
|
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)
|
#elif defined(MODULE_ENC28J60)
|
||||||
for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) {
|
for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user