There are 5 main methods to configure WiFi.

https://retropie.org.uk/docs/Wifi/