GT-I5500 Wi-Fi error I have working Wi-Fi connection. I can connect to any access point in range and I have no problems with passwords, etc.

But after some time (sometimes hours, sometimes days) my phone tries to connect to access point and it fails. In Wi-Fi settings I just have "Błąd" message which in English means "Error". Then I cannot connect to any network, I'm not eve able to scan available networks - Wi-Fi is totally dead. 

When I reboot phone it starts to working normally again.

My phone specs:

Samsung Galaxy 5
GT-I5500
Android 2.2 - FROYO.XWJQ3
I5500XWJP4
I performed two steps to fix the issue:


Settings -> Wireless &amp; network settings -> Wi-Fi settings -> click menu button and select Advanced, Select Wi-Fi sleep policy - > Select Never.
Dial *#*#526#*#* for WLAN Diagnostics. This will reload the Wi-Fi driver (I tried this before without step 1 and it rebooted my mobile).