Default Samsung Galaxy W freezes after Wi-fi gets turned on

A few weeks ago my Galaxy w started freezing, just a few seconds after I turn the wifi on. The only help is taking the battery out and putting it in again. After I restart, I have to turn the wifi off quickly so it doesn't freeze again.
Any help?