My wifi keeps turning itself off I have a Samsung galaxy s6 edge+ and my wifi always turns itself off when the phone is locked and reconnects when unlocked.
Now my wifi is set to always be on even during sleep, I have rebooted my phone done an virus scan and toured the settings and can't find nothing to fix this problem
 Android version 6.0.1
Anyone know what to do?
The doze documentation strongly suggests WiFi is turned off intentionally to save power.

If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services.
The following restrictions apply to your apps while in Doze:

Network access is suspended.
The system does not perform Wi-Fi scans.


If you want to keep your WiFi on, you could leave your phone plugged in overnight.