Overriding ethernet_input function _esp_wifi_recv_cb is only used when the WiFi interface is in connected state.