[Samsung Galaxy W I8150] sigprof:
CM9 RC1: Wi-Fi problems

After upgrading CM9 from Beta4 to RC1 I see problems with keeping the Wi-Fi connection in sleep mode. I configured the phone to keep Wi-Fi turned on in sleep mode, however, the phone loses the Wi-Fi connection after several minutes of sleep.

Here is what I see in the logs of my router (Netgear WNDR3700 v1 with OpenWrt Attitude Adjustment snapshot from 2012-11-11):

Dec 19 23:11:37 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:11:37 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:11:37 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: pairwise key handshake completed (RSN)
Dec 19 23:11:37 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPREQUEST(br-lan) 192.168.43.114 2c:44:01:d7:a5:68
Dec 19 23:11:37 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPACK(br-lan) 192.168.43.114 2c:44:01:d7:a5:68 android-8acd7b17a062dd3f
Dec 19 23:18:59 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:18:59 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:03 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:03 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:07 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:07 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:12 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:12 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:16 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:16 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:21 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:21 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:25 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:25 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:30 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:30 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:34 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:34 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:38 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:38 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:43 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:43 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:47 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:47 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:52 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:52 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:19:56 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:19:56 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:00 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:00 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:05 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:05 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:09 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:09 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:14 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:14 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:18 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:18 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:23 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:23 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:27 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:27 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:31 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:31 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:36 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:36 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:40 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:40 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:45 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:45 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:49 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:49 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:53 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:54 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:20:58 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:20:58 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:02 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:02 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:07 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:07 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:11 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:11 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:16 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:16 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:20 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:20 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:24 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:24 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:29 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:29 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:33 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:33 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:38 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:38 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:42 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:42 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:47 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:47 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:51 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:51 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:21:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:21:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:22:00 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:22:00 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:22:04 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 23:22:04 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 23:22:06 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: pairwise key handshake completed (RSN)
Dec 19 23:22:07 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPREQUEST(br-lan) 192.168.43.114 2c:44:01:d7:a5:68
Dec 19 23:22:07 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPACK(br-lan) 192.168.43.114 2c:44:01:d7:a5:68 android-8acd7b17a062dd3f

At 23:11 I turned on the Wi-Fi on the phone, then just left it lying on the table. At 23:18:59 the phone was not touched, but apparently lost its Wi-Fi connection and started repeated attempts to reestablish it, until at 23:22 I pressed the Power button to turn the screen on. At this time the Wi-Fi icon in the status bar was not present; after a second a gray Wi-Fi icon appeared, and after another couple of seconds the icon became blue.

Logcat output after the connection was lost:

I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
D/CommandListener( 131): Clearing all IP addresses on wlan0
D/ConnectivityService( 291): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 291): Attempting to switch to mobile
D/ConnectivityService( 291): Attempting to switch to BLUETOOTH_TETHER
W/NetworkManagementService( 291): Unable to remove route on interface wlan0
W/NetworkManagementService( 291): Unable to remove route on interface wlan0
D/NetUtils( 291): android_net_utils_resetConnections in env=0x2aa590 clazz=0xead00001 iface=wlan0 mask=0x3
D/ConnectivityService( 291): resetConnections(wlan0, 3)
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
D/Tethering( 291): MasterInitialState.processMessage what=3
I/ActivityManager( 291): Start proc com.cyanogenmod.updater for broadcast com.cyanogenmod.updater/.receiver.UpdateCheckReceiver: pid=3890 uid=10095 gids={3003, 1015, 2001}
D/ConnectivityService( 291): handleInetConditionChange: no active default network - ignore
I/ActivityManager( 291): Start proc android.process.media for broadcast com.android.providers.downloads/.DownloadReceiver: pid=3904 uid=10015 gids={1015, 1023, 1024, 2001, 3003, 3007}
I/ActivityManager( 291): No longer want com.android.browser (pid 3726): hidden #16
I/ActivityThread( 3904): Pub media: com.android.providers.media.MediaProvider
I/ActivityThread( 3904): Pub downloads: com.android.providers.downloads.DownloadProvider
I/ActivityThread( 3904): Pub drm: com.android.providers.drm.DrmProvider
I/DownloadManager( 3904): in removeSpuriousFiles
I/ActivityManager( 291): Start proc com.android.settings for broadcast com.android.settings/.cmstats.ReportingServiceManager: pid=3920 uid=1000 gids={1015, 3002, 3001, 3003, 3007}
W/Smack/Packet( 1032): notify conn break (IOEx), close connection
E/GTalkService( 1032): connectionClosed: no XMPPConnection - That's strange!
D/ConnectivityService( 291): handleInetConditionChange: no active default network - ignore
D/dalvikvm( 291): GC_EXPLICIT freed 1509K, 36% free 10237K/15879K, paused 3ms+7ms
I/DownloadManager( 3904): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/...
D/PicasaSyncManager( 3473): active network: null
D/PicasaSyncManager( 3473): background data: true
I/ActivityManager( 291): Start proc com.google.android.apps.uploader for broadcast com.google.android.apps.uploader/.ConnectivityBroadcastReceiver: pid=3934 uid=10052 gids={3003}
I/ActivityManager( 291): No longer want com.skype.raider (pid 3780): hidden #16
I/dalvikvm( 3934): Turning on JNI app bug workarounds for target SDK version 11...
I/ActivityThread( 3934): Pub com.google.android.apps.uploader: com.google.android.apps.uploader.UploadsContentProvider
I/ActivityThread( 3934): Pub com.google.photos.provider.Album: com.google.android.apps.uploader.clients.picasa.AlbumProvider
D/MediaUploader( 3934): UploaderApplication.onCreate
D/MediaUploader( 3934): nonWifiLimit=20971520, default=20971520
I/MediaUploader( 3934): No need to wake up
I/k9 ( 1168): Got exception while idling, but stop is set for ...@...
W/k9 ( 1168): Attempt to interrupt null mConnection to stop pushing on folderPusher for ...@...
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
D/ConnectivityService( 291): NetTransition Wakelock for WifiStateMachine released by timeout
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
W/ThrottleService( 291): unable to find stats for iface pdp0
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30

Logcat output after pressing the Power button:

I/power ( 291): *** set_screen_state 1
D/lights ( 291): set_light_buttons: color=0xff2a2a2a, tlc=1.
E/Sensors ( 291): sensor enable 0
E/Sensors ( 291): type : 0, deley : 200000000
E/Sensors ( 291): type : 0, deley : 66667000
I/WindowManager( 291): Lock screen displayed!
I/SamplingRateChangeProcessor( 291): Decreased sampling rate.
D/dalvikvm( 3951): Late-enabling CheckJNI
D/AccelerometerListener( 873): enable(false)
I/Adreno200-EGLSUB( 134): <CreateImage:897>: Android Image
I/Adreno200-EGLSUB( 134): <GetImageAttributes:1106>: RGBA_8888
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
I/ActivityManager( 291): Start proc com.dg.gtd.plugin.pure for content provider com.dg.gtd.plugin.pure/.DataProvider: pid=3967 uid=10103 gids={}
D/dalvikvm( 135): GC_EXPLICIT freed 37K, 74% free 2192K/8387K, paused 2ms+2ms
I/dalvikvm( 3980): Turning on JNI app bug workarounds for target SDK version 10...
D/SurfaceFlinger( 134): Screen about to return, flinger = 0xf918
D/dalvikvm( 135): GC_EXPLICIT freed <1K, 74% free 2192K/8387K, paused 2ms+1ms
I/Adreno200-EGLSUB( 134): <CreateImage:897>: Android Image
I/Adreno200-EGLSUB( 134): <GetImageAttributes:1106>: RGBA_8888
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
D/k9 ( 1168): Cursor closed, null'ing & releasing semaphore
D/dalvikvm( 135): GC_EXPLICIT freed <1K, 74% free 2192K/8387K, paused 1ms+2ms
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-DISCONNECTED bssid=30:46:9a:17:de:30 reason=0
I/ActivityManager( 291): No longer want com.google.android.apps.genie.geniewidget (pid 3820): hidden #16
D/AbstractContactEventService( 3951): -
D/AbstractContactEventService( 3951): utc:false
D/AbstractContactEventService( 3951): inTime:Europe/Moscow mTime:Europe/Moscow
<repeated many times>
D/AbstractContactEventService( 3951): -
D/AbstractContactEventService( 3951): utc:false
D/AbstractContactEventService( 3951): inTime:Europe/Moscow mTime:Europe/Moscow
I/wpa_supplicant( 2787): wlan0: Associated with 30:46:9a:17:de:30
I/wpa_supplicant( 2787): wlan0: WPA: Key negotiation completed with 30:46:9a:17:de:30 [PTK=CCMP GTK=CCMP]
I/wpa_supplicant( 2787): wlan0: CTRL-EVENT-CONNECTED - Connection to 30:46:9a:17:de:30 completed (reauth) [id=0 id_str=]
D/AbstractScrollingCursorMap( 3951): query data refreshed in 303ms
D/DhcpInfoInternal( 291): makeLinkProperties with empty dns2!
D/DhcpInfoInternal( 291): makeLinkProperties with empty dns2!
D/ConnectivityService( 291): ConnectivityChange for WIFI: CONNECTED/CONNECTED
W/NetworkStats( 291): dropping UID delta from unknown iface: iface=wlan0 uid=0 set=DEFAULT tag=0x0 rxBytes=0 rxPackets=0 txBytes=140 txPackets=2 operations=0
D/dalvikvm( 888): GC_CONCURRENT freed 3331K, 28% free 11650K/16071K, paused 5ms+18ms
D/Tethering( 291): MasterInitialState.processMessage what=3
I/GTalkService/c( 1032): [AndroidEndpoint@1091311640] connect: acct=1000000, state=CONNECTING
I/MediaUploader( 3934): No need to wake up
D/PicasaSyncManager( 3473): active network: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
D/PicasaSyncManager( 3473): background data: true
I/k9 ( 1168): Committing preference changes
I/k9 ( 1168): Preferences commit took 20ms
I/dalvikvm( 1168): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm( 291): GC_EXPLICIT freed 1665K, 37% free 10126K/15879K, paused 3ms+7ms
D/dalvikvm( 1168): GC_CONCURRENT freed 2533K, 60% free 3430K/8387K, paused 5ms+5ms
E/StrictMode( 1168): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode( 1168): java.lang.Throwable: Explicit termination method 'end' not called
E/StrictMode( 1168):	at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode( 1168):	at java.util.zip.Inflater.<init>(Inflater.java:82)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapConnection.open(ImapStore.java:2382)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapConnection.sendCommand(ImapStore.java:2592)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapConnection.executeSimpleCommand(ImapStore.java:2643)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapConnection.executeSimpleCommand(ImapStore.java:2629)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapConnection.executeSimpleCommand(ImapStore.java:2624)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore.getConnection(ImapStore.java:719)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore.access$1000(ImapStore.java:107)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapFolder.internalOpen(ImapStore.java:887)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapFolderPusher.internalOpen(ImapStore.java:2739)
E/StrictMode( 1168):	at com.fsck.k9.mail.store.ImapStore$ImapFolderPusher$1.run(ImapStore.java:2805)
E/StrictMode( 1168):	at java.lang.Thread.run(Thread.java:856)
D/dalvikvm( 1032): GC_EXPLICIT freed 711K, 63% free 3166K/8387K, paused 3ms+7ms
I/k9 ( 1168): Got exception while idling, but stop is set for xxx@xxx.xx...
D/dalvikvm( 1726): GC_CONCURRENT freed 1949K, 71% free 2466K/8387K, paused 1ms+2ms
D/ConnectivityService( 291): handleInetConditionHoldEnd: net=1, condition=100, published condition=0
I/ActivityManager( 291): Start proc com.google.android.apps.genie.geniewidget for content provider com.google.android.apps.genie.geniewidget/.providers.WeatherProvider: pid=4063 uid=10045 gids={3003, 1015}
...

With Beta4 the Wi-Fi connection in sleep mode with the same router was stable — there were just group key renegotiations every 10 minutes:

Dec 19 20:17:57 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: authenticated
Dec 19 20:17:57 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 IEEE 802.11: associated (aid 1)
Dec 19 20:17:57 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: pairwise key handshake completed (RSN)
Dec 19 20:18:00 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPDISCOVER(br-lan) 2c:44:01:d7:a5:68
Dec 19 20:18:00 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPOFFER(br-lan) 192.168.43.114 2c:44:01:d7:a5:68
Dec 19 20:18:00 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPREQUEST(br-lan) 192.168.43.114 2c:44:01:d7:a5:68
Dec 19 20:18:00 OpenWrt daemon.info dnsmasq-dhcp[2669]: DHCPACK(br-lan) 192.168.43.114 2c:44:01:d7:a5:68 android-8acd7b17a062dd3f
Dec 19 20:18:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: group key handshake completed (RSN)
Dec 19 20:28:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: group key handshake completed (RSN)
Dec 19 20:38:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: group key handshake completed (RSN)
Dec 19 20:48:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: group key handshake completed (RSN)
Dec 19 20:58:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: group key handshake completed (RSN)
Dec 19 21:08:55 OpenWrt daemon.info hostapd: wlan0: STA 2c:44:01:d7:a5:68 WPA: group key handshake completed (RSN)

Reverted to Beta4 for now. Noticed another difference which may be important: on Beta4 the phone replies to pings sent to its Wi-Fi IP address even when the screen is off, but on RC1 the phone stops replying to pings as soon as the screen is turned off (but still replies to ARP requests, until the Wi-Fi connection breaks).