[Motorola Droid 4] Hawkje:
I have done some trouble shooting on the WiFi issues I encounter, and I found the following:

I/PowerManagerService( 571): Going to sleep due to screen timeout...
D/SurfaceFlinger( 171): Screen released, type=0 flinger=0x40950450
I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command SETSUSPENDMODE 1
I/moto_audio_wrapper( 174): set_parameters: screen_state=off
E/AudioHardwareMot( 174): Error:Unsupported key = screen_state=off
[...]
I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command SETSUSPENDMODE 0

The wpa_supplicant process shows this in the logs:

* Phone gets in sleep mode:

I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command SETSUSPENDMODE 1
I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command SETSUSPENDMODE 0
I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command SETSUSPENDMODE 1
I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command SETSUSPENDMODE 0
I/wpa_supplicant( 728): rfkill: WLAN unblocked
I/wpa_supplicant( 728): rfkill: WLAN unblocked

* snip couple of hundreds of the same message

I/wpa_supplicant( 728): rfkill: WLAN unblocked
I/wpa_supplicant( 728): wlan0: WPA: Group rekeying completed with c4:3d:c7:xx:xx:xx [GTK=CCMP]
I/wpa_supplicant( 728): rfkill: WLAN unblocked
I/wpa_supplicant( 728): rfkill: WLAN unblocked
I/wpa_supplicant( 728): rfkill: WLAN unblocked

* snip couple of hundreds of the same message

* Turning WiFi off and on:

I/wpa_supplicant( 728): wlan0: CTRL-EVENT-DISCONNECTED bssid=c4:3d:c7:xx:xx:xx reason=3 locally_generated=1
I/wpa_supplicant( 728): wlan0: SME: Trying to authenticate with c4:3d:c7:xx:xx:xx (SSID='xxx' freq=2437 MHz)
I/wpa_supplicant( 728): wlan0: Trying to associate with c4:3d:c7:xx:xx:xx (SSID='Tleilax' freq=2437 MHz)
I/wpa_supplicant( 728): wlan0: Associated with c4:3d:c7:xx:xx:xx
I/wpa_supplicant( 728): wlan0: WPA: Key negotiation completed with c4:3d:c7:xx:xx:xx [PTK=CCMP GTK=CCMP]
I/wpa_supplicant( 728): wlan0: CTRL-EVENT-CONNECTED - Connection to c4:3d:c7:xx:xx:xx completed (auth) [id=0 id_str=]
I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command WLS_BATCHING GET
I/wpa_supplicant( 728): wpa_driver_nl80211_driver_cmd: Unsupported command WLS_BATCHING STOP

Some messages that appear when the WiFi is down:

wifi status: STATUS_TIMED_OUT_ON_SCAN
wifi status: STATUS_INVALID_SCAN

I got the feeling that the SETSUSPENDMODE somehow screws up my WiFi connection after which I need to turn it off and on again. Anyone has an idea how to fix this?

The SETSUSPENDMODE code can be found in this file within Android:

https://android.googlesource.com/pl...r2/wifi/java/android/net/wifi/WifiNative.java

I found the references to the rfkill here:

http://code.metager.de/source/xref/...plicant_8/wpa_supplicant/src/drivers/rfkill.c

I got the feeling that this is the exact same problem:

http://code.google.com/p/freexperia/issues/detail?id=808

And another page which might point to the same problem. It could be that this is an issue which involves my phone and WiFi-accesspoints.

http://www.droidforums.net/forum/an...uired-solve-droid-wifi-random-drop-issue.html

I am currently testing the "WIFI KeepAlive" app to see if that helps anything.

http://www.appszoom.com/android_developer/roys_fixw.html