diff --git a/cpu/esp32/esp-eth/esp_eth_netdev.c b/cpu/esp32/esp-eth/esp_eth_netdev.c index b04a1c0b95..86920fa0fa 100644 --- a/cpu/esp32/esp-eth/esp_eth_netdev.c +++ b/cpu/esp32/esp-eth/esp_eth_netdev.c @@ -458,6 +458,8 @@ void esp_eth_setup(esp_eth_netdev_t* dev) _esp_eth_dev.link_up = false; _esp_eth_dev.rx_len = 0; _esp_eth_dev.tx_len = 0; + + netdev_register(&dev->netdev, NETDEV_ESP_ETH, 0); } #endif /* MODULE_ESP_ETH */ diff --git a/cpu/esp_common/esp-wifi/esp_wifi_netdev.c b/cpu/esp_common/esp-wifi/esp_wifi_netdev.c index a621cbbce6..f496e2d83a 100644 --- a/cpu/esp_common/esp-wifi/esp_wifi_netdev.c +++ b/cpu/esp_common/esp-wifi/esp_wifi_netdev.c @@ -983,6 +983,8 @@ void esp_wifi_setup (esp_wifi_netdev_t* dev) dev->event_disc = 0; dev->connected = false; #endif /* MODULE_ESP_WIFI_AP */ + + netdev_register(&dev->netdev, NETDEV_ESP_WIFI, 0); } #endif /* MODULE_ESP_WIFI */ diff --git a/drivers/include/net/netdev.h b/drivers/include/net/netdev.h index 0942ae8fbf..9cc2d7bead 100644 --- a/drivers/include/net/netdev.h +++ b/drivers/include/net/netdev.h @@ -329,6 +329,8 @@ typedef enum { NETDEV_ENCX24J600, NETDEV_ATWINC15X0, NETDEV_KW2XRF, + NETDEV_ESP_ETH, + NETDEV_ESP_WIFI, /* add more if needed */ } netdev_type_t; /** @} */