I flashed a new firmware, tested connecting wifi using the default password and it works OK.

No idea how it happens in your side. If it happens again pls report back.