Wifi and cellular data keep turning off by itself.
I had the same problem.  Android Samsung S5.  Wifi kept turning itself off. Very annoying.  I had the smart network switch on or off...didn't matter.  I discovered that I had the ATT Smart WiFi app enabled.  I turned that off and it solved the problem.