apk add iwd dbus
echo "[General]\nEnableNetworkConfiguration=true" >> /etc/iwd/main.conf
rc-service iwd start
rc-service dbus start
rc-update add iwd default
rc-update add dbus default
This can also be done interactively by typing just
iwctl in your terminal.
Let's say that we want to connect to a network named "Felixs iPhone"; if this is your first time connecting to the network, you'll be prompted for the password:
iwctl station wlan0 connect "Felixs iPhone"
iwd will periodically scan for networks in the background, automatically connect and request an IP once it finds one which you've connected to before.