Question: Sometimes after I shut off Wi-Fi using the button inside the notification bar drop-down, I can't turn it back on with that button. Hitting the button does nothing, it's not even highlighted. When I go into `Settings -> Wireless and network -> Wi-Fi settings` the status under "Wi-Fi" shows Error. If I click "Wi-Fi" to turn it on from here, it usually turns on without any problems. Occassionally I have to reboot to fix it.

Is there a fix I can use to make the TouchWiz Wi-Fi button work the same as enabling/disabling the Wi-Fi in Settings? Or, ideally, is there some way I can prevent the Wi-Fi from getting into an error state when I turn it off and back on?

I have a Galaxy S Vibrant running 2.2, but this has been reported on other Samsung phones as well ([example](https://android.stackexchange.com/questions/12233/wifi-error-when-turning-on-closed)).

Answer: 
I've had this happen to me 1 time. I don't think there's anything you can do about it except use the settings. Once you change it in settings, does it work again for you? I did the same in settings, but don't know if I rebooted after the fact.

This could also be something in Nero v3 that is causing it.
I have had the same annoying problem. I've found that the following sequence consistently restores my wifi to a working state:

From the problematic "Turning on...." message in Settings -> Wifi:
1. Press-and-hold the Home button, to activate the Task Manager.
2. End any/all apps that are listed (often, these are recently opened, but not currently active, apps)
3. Press the "Back" button. This should return you to the Settings -> Wifi screen. The wifi state should have changed and should now read "Error".
4. Click the check box to turn on the wifi. If successful, the device should connect almost immediately to any known access points.

Not a true fix, but definitely quicker than power-cycling the device.

Hope this helps someone.