[Moto X Q&A] terabyte128:
Recently, whenever I turn on the WiFi on my phone, it immediately flips back off. This issue is intermittent and happens seemingly randomly, persisting for a day or two, after which WiFi will work for a few days and then break again.

I'm running 4.4.4, VZW, completely stock, and I've already tried a factory reset and "safe mode" (without any third-party apps). Rebooting will sometimes stop the problem, but then it will come back.

Here's the logcat from flipping on WiFi:

D/WifiService( 919): setWifiEnabled: true pid=1533, uid=1000
E/WifiService( 919): Invoking mWifiStateMachine.setWifiEnabled
D/Ulp_jni ( 919): JNI:In update_settings:currentContextType 4, currentGpsSetting 0, currentAgpsSetting 0,currentNetworkProvSetting 0,currentWifiSetting 1,currentBatteryCharging 0,currentEnhLocationServicesSetting 0 currentPipUserSetting 0
W/Settings( 1247): Setting wifi_on has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
W/ContextImpl( 1247): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.internal.settings.SettingsTrigger$1.onChange:395 android.database.ContentObserver.onChange:129 android.database.ContentObserver$NotificationRunnable.run:180
D/WifiStateMachine( 919): setting operational mode to 1
D/WifiStateMachine( 919): handleMessage: E msg.what=131083
D/WifiStateMachine( 919): processMsg: InitialState
W/Settings( 1247): Setting wifi_on has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
W/ContextImpl( 1247): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.internal.settings.SettingsTrigger$1.onChange:395 android.database.ContentObserver.onChange:129 android.database.ContentObserver$NotificationRunnable.run:180
D/Checkin ( 2607): publish the event [tag = MOT_DEVICE_STATS_L1 event name = SettingLogs]
D/Checkin ( 2607): publish the event [tag = MOT_DEVICE_STATS_L1 event name = SettingLogs]
E/WifiStateMachine( 919): Failed to load driver
D/WifiStateMachine( 919): setWifiState: unknown state
I/SBar.NetworkController( 1069): onReceive: WifiManager.WIFI_STATE_CHANGED_ACTION Received
D/BluetoothAdapter( 1533): 1106862184: getState() : mService = null. Returning STATE_OFF
D/WifiStateMachine( 919): handleMessage: X
D/WifiStateMachine( 919): handleMessage: E msg.what=131144
D/WifiStateMachine( 919): processMsg: InitialState
D/WifiStateMachine( 919): processMsg: DefaultState
D/WifiStateMachine( 919): handleMessage: X
W/Settings( 1247): Setting wifi_on has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
W/ContextImpl( 1247): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.internal.settings.SettingsTrigger$1.onChange:395 android.database.ContentObserver.onChange:129 android.database.ContentObserver$NotificationRunnable.run:180
W/Settings( 1247): Setting wifi_on has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
W/ContextImpl( 1247): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.internal.settings.SettingsTrigger$1.onChange:395 android.database.ContentObserver.onChange:129 android.database.ContentObserver$NotificationRunnable.run:180
D/WifiStateMachine( 919): handleMessage: E msg.what=131085
D/WifiStateMachine( 919): processMsg: InitialState
D/WifiStateMachine( 919): processMsg: DefaultState
D/WifiStateMachine( 919): handleMessage: X
D/WifiStateMachine( 919): handleMessage: E msg.what=131149
D/WifiStateMachine( 919): processMsg: InitialState
D/WifiStateMachine( 919): processMsg: DefaultState
D/WifiStateMachine( 919): setSuspendOptimizations: 2 true
D/WifiStateMachine( 919): mSuspendOptNeedsDisabled 4
D/WifiStateMachine( 919): handleMessage: X
D/WifiStateMachine( 919): handleMessage: E msg.what=131084
D/WifiStateMachine( 919): processMsg: InitialState
D/WifiStateMachine( 919): processMsg: DefaultState
D/WifiStateMachine( 919): handleMessage: X
D/Ulp_jni ( 919): JNI:In update_settings:currentContextType 4, currentGpsSetting 0, currentAgpsSetting 0,currentNetworkProvSetting 0,currentWifiSetting 0,currentBatteryCharging 0,currentEnhLocationServicesSetting 0 currentPipUserSetting 0
D/Checkin ( 2607): publish the event [tag = MOT_DEVICE_STATS_L1 event name = SettingLogs]
D/Checkin ( 2607): publish the event [tag = MOT_DEVICE_STATS_L1 event name = SettingLogs]
I/SBar.NetworkController( 1069): onDataActivity: direction=0
I/GCM ( 1412): GCM message com.google.android.talk 0:1406441801764291%5a5392733fb5fb85
D/WifiService( 919): acquireWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@42e24820}
D/ConnectivityService( 919): handleInetConditionHoldEnd: net=0, condition=100, published condition=100
I/ModemStatsDSDetect( 1287): onReceive() -Intent { act=android.net.conn.INET_CONDITION_ACTION flg=0x4000010 (has extras) }
I/SBar.NetworkController( 1069): onReceive: ConnectivityManager.INET_CONDITION_ACTION Received
I/SBar.NetworkController( 1069): updateConnectivity: NetworkInfo: NetworkInfo: type: mobile[LTE], state: CONNECTED/CONNECTED, reason: linkPropertiesChanged, extra: VZWINTERNET, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false, inetCondition= 1
I/ModemStatsDSDetect( 1287): INET_CONDITION=100 ,activeNet=NetworkInfo: type: mobile[LTE], state: CONNECTED/CONNECTED, reason: linkPropertiesChanged, extra: VZWINTERNET, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false
I/ModemStatsDSDetect( 1287): onReceive() - done, currentInetCondition=100

Anyone else experiencing this issue and/or have a fix for it?