In the official Battery app that shows the graph, it shows WiFi was ON the whole time. Besides, on 4.3, I could see the WiFi icon slowly appearing when I unlock the phone, while on 5.0 it is always there. I left the device locked for like 2 hours and even after that WiFi was still there...