Wifi On/Off toggles 5 times per second! Phone: OnePlus 2
OS: Marshmallow 6.0 latest updates


When I go to the Android system wifi settings and click the slider to turn wifi off, the slider starts toggling back and forth very rapidly (4-5 times a second) and it seems to be almost impossible to stop it from doing so.  If I get lucky and hit the slider at just the right time it turns on the wifi again and seems to settle down.  This problem is easy to reproduce, and a reboot doesn't solve it.

Going into airplane mode turns off the wifi but coming out of airplane mode causes the toggling to resume.  This is a recent issue but I have not installed any apps lately nor changed any of the phone's settings so I wonder if it's a system update that has broken something.

When I am at home and connected to my home wifi this issue doesn't occur (as far as I've noticed).  When I am at work I usualy turn off wifi to save battery power and use LTE for data when I need it.  There are wifi networks available at work but I do not connect to them (I always remove the passwords to prevent accidental connections).

I can't find anyone else online who has had this exact issue.

What should I do to solve this?  Could this be an app-related issue?
fixed it this way: Settings, location, improve accuracy and turn off wi-fi. So far problem seems to be fixed.