I've seen a few posts related to my query but none of the answers worked. I'll describe my issue in detail because honestly, I have no idea what to do anymore.
I have had the same problem before but it suddenly stopped and now it has returned. The wifi suddenly turns itself off and whenever I attempt to switch it back on, it just turns off again. I have restarted many times but it never works.
I am using a Samsung galaxy s7 edge and the latest Android version. I hope someone can help, thank you.