If its on, and it doesn't connect to a network it will shut off wifi.
If its on, and your phone goes into sleep mode it will disable it until the screen gets turned on.
If you disable wifi, it won't touch it unless you turn it on.
Sent from my LG-LS840 using Tapatalk 2