[Galaxy S II General] serrov91:
EDIT: I tried to read the log myself though I have no idea of what it means, but found out there was a problem with the DHCP and ip attribution. I have just set a static ip connection to my router and everything stays connected for now =)

Hi everybody! First of all, thank you codeworkx and the team of CM9 for bringing us such an awesome ROM!

I am using CM9 since its very first alpha builds in January and I am having a very recent trouble with my WiFi connection. I am running the newest nightly (29 april) and I've encountered this problem since the 27th's build.

Here's the situation in details: When I turn on my WiFi connection, it gets connected with no trouble (with WPA2 PSK security). After some minutes of Google Music streaming with my bluetooth music dock station (Philips AS111), the WiFi gets disconnected while the screen is off, when i turn the screen on again, the WiFi gets connected again. I have set the WiFi parameters to always stay connected.

There is one thing I noticed though, if I keep my bluetooth connection off, the issue doesn't occur. However, I am using the bluetooth connection with my dock station for better music sound. SO my guess is that it has something to do with both the WiFi and bluetooth when they are simultaneously connected.

I have tried a fresh install (factory wipes and all other wipes), didn't touch the kernel and my modem is an LP6 provided by mister codeworkx. Again, this has never happened to my phone in the earlier builds of April.

I greatly thank you all in advance for your help! Here's the logcat of the event (it's the first time I do a logcat, please let me know if I didnt do it in the right way)...

--------- beginning of /dev/log/system
W/InputManagerService( 2002): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@416de7f8
--------- beginning of /dev/log/main
I/power ( 2002): *** set_screen_state 0
D/lights ( 2002): set_light_button on=0
D/SurfaceFlinger( 1868): About to give-up screen, flinger = 0xdc8918
I/AudioHardwareYamaha( 1871): AudioHardware::setParameters(keyValuePairs="screen_state=off")
D/OpenGLRenderer( 2109): Flushing caches (mode 0)
D/AccelerometerListener( 2225): enable(false)
V/TransportControlView( 2002): Create TCV com.android.internal.widget.TransportControlView@419b67b0
D/PhoneStatusBar( 2109): disable: < expand icons alerts ticker system_info back home RECENT* clock >
W/IInputConnectionWrapper( 2002): showStatusIcon on inactive InputConnection
W/IInputConnectionWrapper( 2002): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper( 2002): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper( 2002): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper( 2002): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper( 2002): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper( 2002): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper( 2002): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper( 2002): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 2002): endBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 2002): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper( 2002): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper( 2002): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper( 2002): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 2002): endBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 2002): getExtractedText on inactive InputConnection
D/PhoneStatusBar( 2109): disable: < expand icons alerts ticker system_info BACK* HOME* RECENT clock >
D/PhoneStatusBar( 2109): disable: < expand icons alerts ticker system_info BACK HOME RECENT CLOCK* >
D/PhoneStatusBar( 2109): disable: < expand icons alerts ticker system_info BACK HOME RECENT clock* >
E/DhcpStateMachine( 2002): DHCP failed on wlan0: Timed out waiting for DHCP Renew to finish
E/WifiStateMachine( 2002): IP configuration failed
I/wpa_supplicant( 7982): wpa_driver_nl80211_disconnect(addr=00:14:c1:37:10:fe reason_code=3)
I/wpa_supplicant( 7982): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
D/CommandListener( 1865): Clearing all IP addresses on wlan0
D/ConnectivityService( 2002): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 2002): Attempting to switch to mobile
D/ConnectivityService( 2002): Attempting to switch to BLUETOOTH_TETHER
I/wpa_supplicant( 7982): Scan requested (ret=0) - scan timeout 30 seconds
E/ConnectivityService( 2002): Exception trying to remove a route: java.lang.IllegalStateException: Unable to communicate with native dameon to add routes - com.android.server.NativeDaemonConnectorException: Cmd {interface route remove wlan0 default 192.168.2.1 32 0.0.0.0} failed with code 400 : {Failed to remove route from default table (No such process)}
E/ConnectivityService( 2002): Exception trying to remove a route: java.lang.IllegalStateException: Unable to communicate with native dameon to add routes - com.android.server.NativeDaemonConnectorException: Cmd {interface route remove wlan0 default 0.0.0.0 0 192.168.2.1} failed with code 400 : {Failed to remove route from default table (No such process)}
D/NetUtils( 2002): android_net_utils_resetConnections in env=0xe89950 clazz=0x6e200001 iface=wlan0 mask=0x3
D/ConnectivityService( 2002): resetConnections(wlan0, 3)
D/NetUtils( 2002): android_net_utils_resetConnections in env=0xe89950 clazz=0x70200001 iface=wlan0 mask=0x3
D/ConnectivityService( 2002): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 2002): Attempting to switch to mobile
D/ConnectivityService( 2002): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 2002): resetConnections(wlan0, 3)
D/dalvikvm( 2183): GC_EXPLICIT freed 295K, 7% free 9967K/10631K, paused 12ms+5ms
W/Smack/Packet( 2183): notify conn break (IOEx), close connection
I/qtaguid ( 2183): Failed write_ctrl(u 76) res=-1 errno=22
I/qtaguid ( 2183): Untagging socket 76 failed errno=-22
W/NetworkManagementSocketTagger( 2183): untagSocket(76) failed with errno -22
D/ConnectivityService( 2002): handleInetConditionChange: no active default network - ignore
D/Tethering( 2002): MasterInitialState.processMessage what=3
I/ActivityManager( 2002): Start proc android.process.media for broadcast com.android.providers.downloads/.DownloadReceiver: pid=8913 uid=10013 gids={1015, 1023, 1024, 2001, 3003, 3007}
D/Tethering( 2002): MasterInitialState.processMessage what=3
I/NetworkMonitor( 8114): Network changed: type(1) name(WIFI) isConnected : false noData: true bitrate:2901
I/NetworkMonitor( 8114): Network changed: type(1) name(WIFI) isConnected : false noData: true bitrate:96
I/NetworkMonitor( 8114): Connectivity status changed to (NOT CONNECTED) wifi: false mobile: falseethernet: false
I/ActivityThread( 8913): Pub downloads: com.android.providers.downloads.DownloadProvider
I/ActivityThread( 8913): Pub drm: com.android.providers.drm.DrmProvider
I/DownloadManager( 8913): in removeSpuriousFiles
I/ActivityThread( 8913): Pub media: com.android.providers.media.MediaProvider
I/MusicRingtones( 8114): Predictive scheduler turned off
I/KeepOnScheduler( 8114): Predictive scheduler turned off
I/wpa_supplicant( 7982): Received scan results (9 BSSes)
W/wpa_supplicant( 7982): [EAP-MSG] EAP wpa_supplicant_check_sim@475: eap_methods not available
I/wpa_supplicant( 7982): wlan0: Trying to associate with 00:14:c1:37:10:fe (SSID='kasing' freq=2437 MHz)
D/dalvikvm( 2002): GC_FOR_ALLOC freed 890K, 14% free 17034K/19655K, paused 92ms
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendMetaData /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendEvent /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB data 2179
I/wpa_supplicant( 7982): wlan0: Associated with 00:14:c1:37:10:fe
I/DownloadManager( 8913): deleting spurious file /cache/dalvik-cache
I/DownloadManager( 8913): deleting spurious file /data/data/com.android.providers.downloads/cache/downloadfile.apk
D/dalvikvm( 8913): GC_CONCURRENT freed 334K, 5% free 9265K/9735K, paused 1ms+2ms
D/dalvikvm( 8114): GC_CONCURRENT freed 393K, 8% free 10535K/11399K, paused 1ms+2ms
I/MediaUploader( 7734): No need to wake up
D/PicasaSyncManager( 6991): active network: null
D/PicasaSyncManager( 6991): background data: true
I/MediaUploader( 7734): No need to wake up
V/PicasaContentProvider( 6991): querySettings: defaults: {sync_on_wifi_only=1, auto_upload_account_type=null, sync_on_battery=1, sync_picasa_on_wifi_only=1, auto_upload_enabled=0, video_upload_wifi_only=1, sync_on_roaming=0, auto_upload_account_name=null}
D/PicasaSyncManager( 6991): reject PrefetchScreenNail (serrov91@gmail.com) for wifi connection
D/PicasaSyncManager( 6991): active network: null
D/PicasaSyncManager( 6991): background data: true
D/dalvikvm( 2002): GC_FOR_ALLOC freed 1370K, 18% free 16285K/19655K, paused 54ms
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendMetaData /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendEvent /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB data 2179
I/wpa_supplicant( 7982): wlan0: WPA: Key negotiation completed with 00:14:c1:37:10:fe [PTK=CCMP GTK=CCMP]
I/wpa_supplicant( 7982): wlan0: CTRL-EVENT-CONNECTED - Connection to 00:14:c1:37:10:fe completed (reauth) [id=0 id_str=]
I/wpa_supplicant( 7982): WPS: cancel wps_retry timer in: wpas_wps_eapol_cb
E/DhcpStateMachine( 2002): DHCP failed on wlan0: Timed out waiting for DHCP to finish
E/WifiStateMachine( 2002): IP configuration failed
I/wpa_supplicant( 7982): wpa_driver_nl80211_disconnect(addr=00:14:c1:37:10:fe reason_code=3)
I/wpa_supplicant( 7982): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
D/CommandListener( 1865): Clearing all IP addresses on wlan0
D/ConnectivityService( 2002): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 2002): Attempting to switch to mobile
D/ConnectivityService( 2002): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 2002): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 2002): Attempting to switch to mobile
D/ConnectivityService( 2002): Attempting to switch to BLUETOOTH_TETHER
W/NetworkStats( 2002): dropping UID delta from unknown iface: iface=wlan0 uid=0 set=DEFAULT tag=0x0 rxBytes=0 rxPackets=0 txBytes=384 txPackets=6 operations=0
I/wpa_supplicant( 7982): Scan requested (ret=0) - scan timeout 30 seconds
D/Tethering( 2002): MasterInitialState.processMessage what=3
I/NetworkMonitor( 8114): Network changed: type(1) name(WIFI) isConnected : false noData: true bitrate:96
D/Tethering( 2002): MasterInitialState.processMessage what=3
I/NetworkMonitor( 8114): Network changed: type(1) name(WIFI) isConnected : false noData: true bitrate:96
D/PicasaSyncManager( 6991): active network: null
D/PicasaSyncManager( 6991): background data: true
I/MediaUploader( 7734): No need to wake up
D/PicasaSyncManager( 6991): active network: null
D/PicasaSyncManager( 6991): background data: true
I/MediaUploader( 7734): No need to wake up
I/wpa_supplicant( 7982): Received scan results (9 BSSes)
W/wpa_supplicant( 7982): [EAP-MSG] EAP wpa_supplicant_check_sim@475: eap_methods not available
I/wpa_supplicant( 7982): wlan0: Trying to associate with 00:14:c1:37:10:fe (SSID='kasing' freq=2437 MHz)
I/wpa_supplicant( 7982): wlan0: Associated with 00:14:c1:37:10:fe
I/wpa_supplicant( 7982): wlan0: WPA: Key negotiation completed with 00:14:c1:37:10:fe [PTK=CCMP GTK=CCMP]
I/wpa_supplicant( 7982): wlan0: CTRL-EVENT-CONNECTED - Connection to 00:14:c1:37:10:fe completed (reauth) [id=0 id_str=]
I/wpa_supplicant( 7982): WPS: cancel wps_retry timer in: wpas_wps_eapol_cb
I/power ( 2002): *** set_screen_state 1
I/WindowManager( 2002): Lock screen displayed!
I/AudioHardwareYamaha( 1871): AudioHardware::setParameters(keyValuePairs="screen_state=on")
D/AccelerometerListener( 2225): enable(false)
D/SurfaceFlinger( 1868): Screen about to return, flinger = 0xdc8918
D/dalvikvm( 7099): GC_CONCURRENT freed 466K, 30% free 9714K/13703K, paused 2ms+10ms
D/DhcpInfoInternal( 2002): makeLinkProperties with empty dns2!
D/DhcpInfoInternal( 2002): makeLinkProperties with empty dns2!
D/ConnectivityService( 2002): ConnectivityChange for WIFI: CONNECTED/CONNECTED
D/ConnectivityService( 2002): ConnectivityChange for WIFI: CONNECTED/CONNECTED
D/ConnectivityService( 2002): handleConnectivityChange: address are the same reset per doReset linkProperty[1]: resetMask=0
W/NetworkStats( 2002): dropping UID delta from unknown iface: iface=wlan0 uid=0 set=DEFAULT tag=0x0 rxBytes=328 rxPackets=1 txBytes=252 txPackets=4 operations=0
D/ConnectivityService( 2002): NetTransition Wakelock for WifiStateMachine released by timeout
D/PhoneStatusBar( 2109): disable: < expand icons alerts ticker system_info BACK HOME recent* clock >
D/OpenGLRenderer( 2002): Flushing caches (mode 0)
W/InputManagerService( 2002): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@417875a0
D/PhoneStatusBar( 2109): disable: < expand icons alerts ticker system_info back* home* recent clock >
D/Tethering( 2002): MasterInitialState.processMessage what=3
I/NetworkMonitor( 8114): Network changed: type(1) name(WIFI) isConnected : true noData: false bitrate:96
I/NetworkMonitor( 8114): Network changed: type(1) name(WIFI) isConnected : true noData: false bitrate:512
I/GTalkService/c( 2183): [AndroidEndpoint@1094090176] connect: acct=1000000, state=CONNECTING
I/NetworkMonitor( 8114): Connectivity status changed to (CONNTECTED) wifi: true mobile: falseethernet: false
D/PicasaSyncManager( 6991): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
D/Tethering( 2002): MasterInitialState.processMessage what=3
I/GTalkService/c( 2183): [GTalkConnection@1094622400] connect: acct=1, state=CONNECTING
I/MediaUploader( 7734): No need to wake up
I/MediaUploader( 7734): No need to wake up
D/PicasaSyncManager( 6991): background data: true
D/dalvikvm( 2002): GC_EXPLICIT freed 1774K, 18% free 16177K/19655K, paused 2ms+7ms
I/MusicRingtones( 8114): Predictive scheduler turned on
D/dalvikvm( 2183): GC_CONCURRENT freed 510K, 7% free 9904K/10631K, paused 55ms+4ms
V/PicasaContentProvider( 6991): querySettings: defaults: {sync_on_wifi_only=1, auto_upload_account_type=null, sync_on_battery=1, sync_picasa_on_wifi_only=1, auto_upload_enabled=0, video_upload_wifi_only=1, sync_on_roaming=0, auto_upload_account_name=null}
I/KeepOnScheduler( 8114): Predictive scheduler turned on
D/PicasaSyncManager( 6991): reject PrefetchScreenNail (serrov91@gmail.com) because auto sync is off
D/PicasaSyncManager( 6991): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
D/PicasaSyncManager( 6991): background data: true
I/MusicStreaming( 8114): Accept header value: audio/mpeg
I/MusicDL ( 8114): Setting bitrate of (DownloadOrder: MK Ultra (feat. Baba Zumbi of Zion I) ([1683, DEFAULT], PREFETCH DOWNLOADING completed:0) ) to: 512
I/MusicDL ( 8114): Attempt #1 to download DownloadOrder: MK Ultra (feat. Baba Zumbi of Zion I) ([1683, DEFAULT], PREFETCH DOWNLOADING completed:0)
I/MusicDL ( 8114): Downloading: DownloadOrder: MK Ultra (feat. Baba Zumbi of Zion I) ([1683, DEFAULT], PREFETCH DOWNLOADING completed:0)
D/dalvikvm( 8114): GC_CONCURRENT freed 412K, 8% free 10516K/11399K, paused 2ms+2ms
I/MusicStreaming( 8114): Requesting URL: https://android.clients.google.com/music/mplay?songid=3e28d4b2-ffcf-3e73-b862-caaf5b685206&targetkbps=512&dt=pc&pt=a
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendMetaData /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendEvent /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB data 2179
D/dalvikvm( 8114): GC_CONCURRENT freed 353K, 8% free 10550K/11399K, paused 2ms+2ms
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendMetaData /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB
D/BluetoothA2dpService( 2002): Meta data info is trackname: Hometown Glory (Live At Hotel Cafe) artist: Adele
D/BluetoothA2dpService( 2002): mMediaNumber: 2179 mediaCount 0
D/BluetoothA2dpService( 2002): mPostion 0 album: 19 (Deluxe Edition)duration 0
D/BluetoothA2dpService( 2002): sendEvent /org/bluez/2106/hci0/dev_00_1D_DF_52_AB_DB data 2179
D/dalvikvm( 8114): GC_CONCURRENT freed 407K, 8% free 10549K/11399K, paused 2ms+2ms
I/MusicStreaming( 8114): Response: status=302
I/MusicStreaming( 8114): Requesting URL: http://v23.lscache1.c.doc-0-0-sj.sj.googleusercontent.com/videoplayback?id=3389d02032e2bc3d&itag=25&source=skyjam&begin=0&o=06527424445741572534&ip=0.0.0.0&ipbits=0&expire=1335777889&sparams=id,itag,source,o,ip,ipbits,expire&signature=7B2B789BCCA3C47B79978548420FB5D5FA5A9F6A.75DCA3928E86B9972CCF4A2F93F804705277DEB7&key=sj2
D/dalvikvm( 7918): GC_CONCURRENT freed 365K, 8% free 9998K/10759K, paused 12ms+4ms
D/ConnectivityService( 2002): handleInetConditionHoldEnd: net=1, condition=100, published condition=0
D/dalvikvm( 2183): GC_CONCURRENT freed 345K, 7% free 9946K/10631K, paused 3ms+6ms
D/lights ( 2002): set_light_button on=0
I/MusicStreaming( 8114): Response: status=200
I/MusicStreaming( 8114): Received valid response for playback with content type: audio/mpeg
D/MusicDL ( 8114): Opening file for download:/mnt/sdcard/Android/data/com.google.android.music/cache/music/1683.mp3
D/MusicDL ( 8114): Event logging MUSIC_DOWNLOAD_STATUS: [1683, DEFAULT]/3e28d4b2-ffcf-3e73-b862-caaf5b685206 status: 1 data: 0 latency: 1 type: 1 subtype: 0 download type: 2