Wifi automatically turns on persistently, despite configuration I am using a Sony Xperia L (C2104) with Android 4.2.2 (Build number 15.3.A.1.17).

I can only find one setting that would turn on Wi-Fi automatically, and it is the "Location-based Wi-Fi" setting in the Power Management settings category. Of course, I have disabled this option, but I frequently find my Wi-Fi on. How can I fix this?
This problem might be caused by some third party application installed on the device. I faced this problem with quite a few applications like "Fast File Transfer", "Super Beam", etc. Applications that require to use the wifi-direct feature seem to create the problem. I uninstalled both the applications and the device wifi was normal again after a reboot.