How do I stop my galaxy s5 from turning the wifi off after it restarts to do an update?

A

AC Question

My phone has an update and every time I start it my phone has to restart. Every time it restarts my wifi is off when it was on before the phone reatarted. Because the wifi is turned off it interrupts the update. Why does my phone restart with the wifi automatically off?