[Samsung Galaxy Nexus] sarshadd:
Looked at some logs. It doesn't seem like there is anything external turning WiFi off. Seems like it just does it all by itself, even though I have WiFi sleep set to never... Maybe it's just a bug in 4.1.1 where you set it to sleep never and the setting doesn't stick? But then the issue should be more wide spread.

The few times I've caught it in the log, it happens generally right before the PicasaSyncManager process. I have Google photo sync disabled but instant upload for google+ enabled. I'm not sure if they use the same upload process though...

Anyone have any advice?

08-22 11:19:10.513 15518 15535 I Email : ReconcilePopImapAccountsSync: done
08-22 11:19:10.614 13541 13541 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
08-22 11:19:10.614 316 692 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4254d2f8 attribute=null
08-22 11:19:10.708 316 604 I ActivityManager: No longer want com.google.android.googlequicksearchbox (pid 15170): hidden #16
08-22 11:19:10.934 15548 15550 D dalvikvm: GC_CONCURRENT freed 378K, 47% free 2652K/4995K, paused 12ms+3ms, total 33ms
08-22 11:19:10.934 15548 15575 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 6ms
08-22 11:19:15.263 11641 11643 D dalvikvm: GC_CONCURRENT freed 337K, 45% free 2959K/5379K, paused 12ms+14ms, total 45ms
08-22 11:19:16.661 540 542 D dalvikvm: GC_CONCURRENT freed 1150K, 38% free 5712K/9155K, paused 12ms+4ms, total 73ms
08-22 11:19:16.669 540 540 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 26ms
08-22 11:19:16.669 540 15580 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 40ms
[B][COLOR="Lime"]08-22 11:19:18.403 136 296 D CommandListener: Clearing all IP addresses on wlan0[/COLOR][/B]
[COLOR="Lime"][B]08-22 11:19:18.403 316 328 D WifiService: setWifiEnabled: false pid=849, uid=10070[/B][/COLOR]
08-22 11:19:18.427 15310 15310 I wpa_supplicant: CTRL_IFACE monitor[0]: 2 - No such file or directory
[COLOR="Lime"][B]08-22 11:19:18.442 316 390 D ConnectivityService: ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED[/B][/COLOR][/COLOR]
08-22 11:19:18.450 316 390 D NetUtils: android_net_utils_resetConnections in env=0x5b3bf520 clazz=0xf200001 iface=wlan0 mask=0x3
08-22 11:19:18.450 316 390 D ConnectivityService: Attempting to switch to mobile
08-22 11:19:18.450 316 390 D ConnectivityService: Attempting to switch to BLUETOOTH_TETHER
08-22 11:19:18.450 316 390 D ConnectivityService: Attempting to switch to ETHERNET
08-22 11:19:18.450 316 390 D ConnectivityService: resetConnections(wlan0, 3)
08-22 11:19:18.497 577 579 D dalvikvm: GC_CONCURRENT freed 723K, 40% free 4268K/7043K, paused 2ms+2ms, total 49ms
08-22 11:19:18.505 665 15471 W Smack/Packet: notify conn break (IOEx), close connection
08-22 11:19:18.513 316 390 D NetUtils: android_net_utils_resetConnections in env=0x5b3bf520 clazz=0x11400001 iface=wlan0 mask=0x3
08-22 11:19:18.513 316 390 D ConnectivityService: ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
08-22 11:19:18.513 316 390 D ConnectivityService: Attempting to switch to mobile
08-22 11:19:18.513 316 390 D ConnectivityService: Attempting to switch to BLUETOOTH_TETHER
08-22 11:19:18.513 316 390 D ConnectivityService: Attempting to switch to ETHERNET
08-22 11:19:18.513 316 390 D ConnectivityService: resetConnections(wlan0, 3)
08-22 11:19:18.528 15310 15310 I wpa_supplicant: p2p0: CTRL-EVENT-TERMINATING
08-22 11:19:18.653 665 15471 I qtaguid : Failed write_ctrl(u 72) res=-1 errno=22
08-22 11:19:18.653 665 15471 I qtaguid : Untagging socket 72 failed errno=-22
08-22 11:19:18.653 665 15471 W NetworkManagementSocketTagger: untagSocket(72) failed with errno -22
08-22 11:19:18.661 316 390 D ConnectivityService: handleInetConditionChange: no active default network - ignore
08-22 11:19:18.708 665 667 D dalvikvm: GC_CONCURRENT freed 486K, 40% free 4037K/6723K, paused 12ms+4ms, total 48ms
08-22 11:19:18.919 316 320 D dalvikvm: GC_CONCURRENT freed 2009K, 24% free 25362K/33155K, paused 4ms+19ms, total 161ms
08-22 11:19:19.122 15310 15310 I wpa_supplicant: wlan0: CTRL-EVENT-TERMINATING
08-22 11:19:19.122 316 391 D Tethering: InitialState.processMessage what=4
08-22 11:19:19.122 316 391 D Tethering: sendTetherStateChangedBroadcast 0, 0, 0
08-22 11:19:21.520 316 391 D Tethering: MasterInitialState.processMessage what=3
08-22 11:19:21.559 316 391 D Tethering: MasterInitialState.processMessage what=3
08-22 11:19:21.591 15437 15455 D PicasaSyncManager: active network: null
08-22 11:19:21.591 15437 15455 D PicasaSyncManager: background data: true
08-22 11:19:21.692 15457 15490 D PicasaUploaderSyncManager: active network: null
08-22 11:19:21.692 15457 15490 D PicasaUploaderSyncManager: background data: true
08-22 11:19:21.794 15437 15455 D PicasaSyncManager: active network: null
08-22 11:19:21.794 15437 15455 D PicasaSyncManager: background data: true
08-22 11:19:21.841 15457 15490 D PicasaUploaderSyncManager: active network: null
08-22 11:19:21.841 15457 15490 D PicasaUploaderSyncManager: background data: true
08-22 11:19:21.934 136 291 D NetlinkEvent: Unexpected netlink message. type=0x0
08-22 11:19:21.942 316 390 D ConnectivityService: ConnectivityChange for mobile: CONNECTED/CONNECTED
08-22 11:19:21.942 316 390 E MobileDataStateTracker: default: unknown network type: 15
08-22 11:19:21.989 540 542 D dalvikvm: GC_CONCURRENT freed 1072K, 37% free 5785K/9155K, paused 12ms+14ms, total 86ms
08-22 11:19:22.942 316 390 D ConnectivityService: NetTransition Wakelock for WifiStateMachine released by timeout
08-22 11:19:24.489 140 140 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
08-22 11:19:24.497 316 332 I ActivityManager: Start proc com.google.android.googlequicksearchbox for broadcast com.google.android.googlequicksearchbox/com.google.android.apps.sidekick.calendar.CalendarIntentService$CalendarReceiver: pid=15610 uid=10055 gids={3003, 1028, 1007, 3002, 1015}
08-22 11:19:24.513 140 140 D dalvikvm: GC_EXPLICIT freed 39K, 51% free 2156K/4352K, paused 2ms+3ms, total 22ms