Why is my wifi is automatically off on reboot after root on Galaxy S7

A

AC Question

So after rooting my gs7 and rebooting the phone a few times for root purposes I found that i manually have to turn on the wifi setting and manually have to connect to my home wifi every time I have reboot it. Is there any way I can fix this problem so when i reboot my phone the wifi is on already and it remembers my home wifi password like before I rooted?