When this happens, i.e. wifi connection failed,
can you connect via cable and ssh to the router and get some log logread?