Device locks up when trying to connect to Wifi

There’s a trick on this forum that might help:

How to disable wifi power save to prevent disconnects