Remove possible WIFI buffer overflow, add ethernet data packet handling