Although the Pinephone (Braveheart) with UBports can now be used as a daily driver (calls, data connection and texts work among other things), sometimes there is a problem with Wifi. Unfortunately, even rebooting the phone doesn’t help. Three commands come to the rescue.
sudo nmcli radio wifi off
sudo nmcli radio wifi on
sudo reboot now
Pinephone will reboot and you will be able to use wifi again.
Naturally, work with Ubports on Pinephone is still underway, and maybe when you read this text, the wifi problem has now been resolved 😉