For those who have problems with Wi-Fi:
Delete the files in the /Data/misc/wifi folder. No need for a factory reset. It fixed the problem for me.
Now, the Wifi cannot obtain the IP adress. It seems it could be related to the wifi module. I want to investigate furthermore to find a solution to this as well.