[AT&T Samsung Galaxy S II SGH-I777] elherr:
Odd -- using tcpdump I am showing Layer 2 frames (with no Layer 3 payload) every now and then. With your capture I did not see a single one. I'll have to install Shark from Play and see what I get.

I'm seeing roughly the same wlan_rx_wake percentage as you but I have much more network traffic. Interesting.

I'm also trying to associate open network sockets to processes but seem to be stymied by crap 'lsof' in CM9. 'lsof' in ADB shell does not show network sockets.

"Standard" lsof in Linux supports sockets. From my netbook:

eherr@quark:~$ lsof -ni
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
adb 3499 eherr 5u IPv4 520078 0t0 TCP 127.0.0.1:5037 (LISTEN)
adb 3499 eherr 8u IPv4 1032810 0t0 TCP 127.0.0.1:5037->127.0.0.1:46095 (ESTABLISHED)
firefox-b 4045 eherr 30u IPv4 1518003 0t0 TCP 10.10.10.34:41752->50.23.216.69:http (ESTABLISHED)
firefox-b 4045 eherr 47u IPv4 1518360 0t0 TCP 10.10.10.34:59417->199.48.255.172:http (ESTABLISHED)
firefox-b 4045 eherr 52u IPv4 1518361 0t0 TCP 10.10.10.34:59418->199.48.255.172:http (ESTABLISHED)
firefox-b 4045 eherr 53u IPv4 1518362 0t0 TCP 10.10.10.34:59419->199.48.255.172:http (ESTABLISHED)
firefox-b 4045 eherr 55u IPv4 1518363 0t0 TCP 10.10.10.34:59420->199.48.255.172:http (ESTABLISHED)
firefox-b 4045 eherr 57u IPv4 1518364 0t0 TCP 10.10.10.34:37412->74.125.127.95:http (ESTABLISHED)
firefox-b 4045 eherr 59u IPv4 1518365 0t0 TCP 10.10.10.34:37413->74.125.127.95:http (ESTABLISHED)

Entropy512 -- if you are listening -- do you know if this is CM9 specific or is this a general Android or Busybox thing?

---------- Post added at 06:50 PM ---------- Previous post was at 06:35 PM ----------

Also taking a look at log events --

shell@android:/ # logcat -v time | grep wlan
05-19 16:47:03.709 E/CommandListener( 1853): Failed to open /proc/sys/net/ipv6/conf/wlan0/disable_ipv6: No such file or directory
05-19 16:47:05.004 D/CommandListener( 1853): Trying to bring down wlan0
05-19 16:47:05.024 E/WifiHW ( 1980): Unable to open connection to supplicant on "wlan0": No such file or directory
05-19 16:47:05.879 W/NetworkStats( 1980): dropping UID delta from unknown iface: iface=wlan0 uid=0 set=DEFAULT tag=0x0 rxBytes=0 rxPackets=0 txBytes=76 txPackets=1 operations=0
05-19 16:47:09.094 I/wpa_supplicant( 2202): wlan0: Trying to associate with 00:0b:6b:2d:d7:1b (SSID='Hefeweizen' freq=2447 MHz)
05-19 16:47:09.279 I/wpa_supplicant( 2202): wlan0: Associated with 00:0b:6b:2d:d7:1b
05-19 16:47:09.389 I/wpa_supplicant( 2202): wlan0: WPA: Key negotiation completed with 00:0b:6b:2d:d7:1b [PTK=CCMP GTK=TKIP]
05-19 16:47:09.389 I/wpa_supplicant( 2202): wlan0: CTRL-EVENT-CONNECTED - Connection to 00:0b:6b:2d:d7:1b completed (auth) [id=1 id_str=]
05-19 16:47:10.219 W/NetworkStats( 1980): dropping UID delta from unknown iface: iface=wlan0 uid=0 set=DEFAULT tag=0x0 rxBytes=0 rxPackets=0 txBytes=120 txPackets=2 operations=0
05-19 16:47:14.796 I/wpa_supplicant( 2202): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:0b:6b:2d:d7:1b reason=0
05-19 16:47:14.801 D/CommandListener( 1853): Clearing all IP addresses on wlan0
05-19 16:47:15.576 D/NetUtils( 1980): android_net_utils_resetConnections in env=0x197bfe8 clazz=0x3f400001 iface=wlan0 mask=0x3
05-19 16:47:15.576 E/ConnectivityService( 1980): 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 10.10.10.1 32 0.0.0.0} failed with code 400 : {Failed to remove route from default table (No such process)}
05-19 16:47:15.576 E/ConnectivityService( 1980): 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 10.10.10.1} failed with code 400 : {Failed to remove route from default table (No such process)}
05-19 16:47:15.576 D/ConnectivityService( 1980): resetConnections(wlan0, 3)
05-19 16:47:15.686 D/NetUtils( 1980): android_net_utils_resetConnections in env=0x197bfe8 clazz=0x41500001 iface=wlan0 mask=0x3
05-19 16:47:15.686 D/ConnectivityService( 1980): resetConnections(wlan0, 3)
05-19 16:47:18.761 I/wpa_supplicant( 2202): wlan0: Trying to associate with 00:0b:6b:2d:d7:1b (SSID='Hefeweizen' freq=2447 MHz)
05-19 16:47:18.896 I/wpa_supplicant( 2202): wlan0: Associated with 00:0b:6b:2d:d7:1b
05-19 16:47:18.911 I/wpa_supplicant( 2202): wlan0: WPA: Key negotiation completed with 00:0b:6b:2d:d7:1b [PTK=CCMP GTK=TKIP]
05-19 16:47:18.911 I/wpa_supplicant( 2202): wlan0: CTRL-EVENT-CONNECTED - Connection to 00:0b:6b:2d:d7:1b completed (reauth) [id=1 id_str=]
05-19 16:47:19.231 W/NetworkStats( 1980): dropping UID delta from unknown iface: iface=wlan0 uid=0 set=DEFAULT tag=0x0 rxBytes=0 rxPackets=0 txBytes=76 txPackets=1 operations=0
05-19 16:53:00.580 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 16:53:00.590 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 17:03:01.615 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 17:03:01.630 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 17:12:59.885 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 17:22:59.995 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 17:33:00.205 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 17:43:00.100 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 17:52:59.915 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 18:02:59.920 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 18:12:59.825 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 18:22:59.630 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 18:33:00.040 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]
05-19 18:42:59.955 I/wpa_supplicant( 2202): wlan0: WPA: Group rekeying completed with 00:0b:6b:2d:d7:1b [GTK=TKIP]