Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/cyw43_lwip.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,19 @@ void cyw43_cb_tcpip_deinit(cyw43_t *self, int itf) {
#if LWIP_MDNS_RESPONDER
mdns_resp_remove_netif(n);
#endif
#if !LWIP_SINGLE_NETIF
for (struct netif *netif = netif_list; netif != NULL; netif = netif->next) {
if (netif == n) {
netif_remove(netif);
netif->ip_addr.addr = 0;
netif->flags = 0;
}
}
#else
netif_remove(n);
n->ip_addr.addr = 0;
n->flags = 0;
#endif
}

void cyw43_cb_process_ethernet(void *cb_data, int itf, size_t len, const uint8_t *buf) {
Expand Down