Default Stock unrooted and goes on bootloop with wifi on

I need some help. I have a stock unrooted ATT device. Every time i turn on the wifi it goes on a bootloop, but when the wifi is off its fine. I tried to soft and hard reset but no luck. Any suggestions?