phone won't connect to wifi after upgrade to Android 5.1
I had the same problem, but after upgrading to 5.02 I solved it by removing the network (go to WLAN settings and long click your home WiFi and then select remove) and then reconnecting to it. It will ask you for the password again and after that it should connect normally.

I heard that there are some WLAN bugs in Android 5.