[Samsung Galaxy S7 Questions and Answers] junosl:
Logcat added

I also have a similar problem and "Switch to mobile data" under "Adaptive Wi-Fi" is turned off, if that is what you meant by Smart network switch.

Below is a relevant part of the logcat around the time WiFi got disconnected. Does anyone have an idea what might be causing this?

05-17 20:28:46.869 3672 3886 D WifiStateMachine: WifiOrSoftApModeState CMD_SEC_LOGGING rt=316283072/612580321 0 0

05-17 20:28:46.921 3672 3886 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:956 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager.sendBroadcastToContextFramework:353 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager.parseAndSendData:409 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager.processBigDataLog:369 com.samsung.android.server.wifi.bigdata.WifiBigDataLogManager.insertLog:262

05-17 20:28:47.447 4680 4680 I GeofencerStateMachine: sendWifiConnectivityChanged: connectivity=false

05-17 20:28:47.483 3672 5400 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:47.496 3672 5400 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:47.557 4445 4615 D CapabilityProvider: mWifiStateListener.onAvailable(): mIsWifiConnected [false]

05-17 20:28:47.568 4445 4622 D PdnController: onWifiDisConnected:

05-17 20:28:47.580 4445 4622 D RegiMgrBase<0>: onDataConnectionStateChanged(): networkType [LTE], isWifiConnected [false]

05-17 20:28:47.581 4445 4622 D VolteServiceModule: onDataConnectionStateChanged(): networkType [LTE]isWifiConnected [false], phoneId [0]

05-17 20:28:47.654 12914 12914 V AllShare(ASF-DMC): SystemEventMonitor.checkWifiState - WIFI STATE: DISCONNECTED

05-17 20:28:47.681 12914 12914 V AllShare(ASF-DMC): SystemEventMonitor.checkWifiState - WIFI STATE: DISCONNECTED

05-17 20:28:47.762 3672 4344 D SLocation: checkWifiInfo

05-17 20:28:47.764 3672 4344 D WifiService: getWifiEnabledState uid=1000

05-17 20:28:47.764 3672 4097 D WifiService: getWifiEnabledState uid=1000

05-17 20:28:47.960 3672 3672 D InputManager: enableDeviceForBackOff deviceID:0 deviceValue:1 mIsValidIntentForWifi:false

05-17 20:28:48.024 3672 3886 D WifiStateMachine: WifiStateMachine: Leaving Connected state

05-17 20:28:48.038 3672 3886 D WifiStateMachine: Wifi got Disconnected in connectedstate, Send provisioning intent mIsAutoRoamingfalse

05-17 20:28:48.039 3672 3886 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:956 com.android.server.wifi.WifiStateMachine$ConnectedState.exit:10867 com.android.internal.util.StateMachine$SmHandler.invokeExitMethods:1021 com.android.internal.util.StateMachine$SmHandler.performTransitions:877 com.android.internal.util.StateMachine$SmHandler.handleMessage:819

05-17 20:28:48.045 3672 3886 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:956 com.android.server.wifi.WifiStateMachine$ConnectedState.exit:10870 com.android.internal.util.StateMachine$SmHandler.invokeExitMethods:1021 com.android.internal.util.StateMachine$SmHandler.performTransitions:877 com.android.internal.util.StateMachine$SmHandler.handleMessage:819

05-17 20:28:48.076 4445 4622 D RegiMgrBase<0>: onNetworkEventChanged:Changed Event: isWifiConnected(new= false, old= true),

05-17 20:28:48.076 4445 4622 D VolteServiceModule: onNetworkChanged: NetworkEvent [network=13, voiceOverPs=SUPPORTED, outOfService=false, isDataRoaming=false, isVoiceRoaming=false, csOutOfService=false, isWifiConnected=false, isEpdgConnected=false. isEpdgAvailable=false, operatorNumeric=29341, isPsOnlyReg=false]

05-17 20:28:48.083 4445 4622 D UtServiceModule: onNetworkChanged to NetworkEvent [network=13, voiceOverPs=SUPPORTED, outOfService=false, isDataRoaming=false, isVoiceRoaming=false, csOutOfService=false, isWifiConnected=false, isEpdgConnected=false. isEpdgAvailable=false, operatorNumeric=29341, isPsOnlyReg=false]

05-17 20:28:48.151 1142 1142 D RCS-ContactsImsCommon: isEpdgOrWifi : false

05-17 20:28:48.400 1142 1142 D RCS-ContactsImsCommon: isEpdgOrWifi : false

05-17 20:28:48.564 13830 13830 I KnoxUsageLogPro: processSystemEvents: Wifi not connected just return

05-17 20:28:48.567 3672 5378 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.net.wifi.STATE_CHANGE flg=0x4000010 (has extras) } to com.here.app.maps/com.here.app.trafficprobegen.WifiIntentReceiver

05-17 20:28:48.900 3672 4097 D WifiService: getWifiEnabledState uid=1000

05-17 20:28:48.960 3672 4097 D WifiService: getWifiEnabledState uid=1000

05-17 20:28:49.332 3672 5400 I ActivityManager: Start proc 13866:org.fdroid.fdroid/u0a627 for broadcast org.fdroid.fdroid/.nearby.WifiStateChangeReceiver

05-17 20:28:50.710 13830 13830 I KnoxUsageLogPro: processSystemEvents: Wifi not connected just return

05-17 20:28:50.712 3672 5395 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.net.wifi.STATE_CHANGE flg=0x4000010 (has extras) } to com.here.app.maps/com.here.app.trafficprobegen.WifiIntentReceiver

05-17 20:28:50.810 3672 5359 D WifiService: getWifiEnabledState uid=10627

05-17 20:28:50.812 3672 5395 W BroadcastQueue: Background execution not allowed: receiving Intent { act=com.samsung.intent.action.START_PROVISIONING flg=0x10 } to com.android.settings/com.samsung.android.settings.wifi.mobileap.WifiApBroadcastReceiver

05-17 20:28:50.822 3672 5359 D WifiService: getWifiEnabledState uid=10627

05-17 20:28:50.828 3672 5395 D WifiService: getWifiEnabledState uid=10627

05-17 20:28:50.844 3672 5400 D WifiService: getWifiApEnabledState uid=1000

05-17 20:28:50.908 3672 5377 D WifiService: getWifiEnabledState uid=10627

05-17 20:28:50.925 3672 5377 D WifiService: getWifiEnabledState uid=10627

05-17 20:28:50.951 3672 5395 D WifiService: getWifiEnabledState uid=10627

05-17 20:28:52.779 3672 3924 D WifiScanningService: addSingleScanRequest: ClientInfo[uid=10016,android.os.Messenger@a3c899e],Id=603,WorkSource{1010}, ScanSettings { packageName:WifiConnectivityManager band:7 period:0 reportEvents:3 numBssidsPerScan:0 maxScansToCache:0 channels:[ ] }

05-17 20:28:52.781 3672 3924 I WifiScanController: scan requested by WifiConnectivityManager

05-17 20:28:52.781 3672 3924 D WifiScanningService: updateScanSettings: ScanSettings { packageName:WifiConnectivityManager band:7 period:0 reportEvents:3 numBssidsPerScan:0 maxScansToCache:0 channels:[ ] }

05-17 20:28:52.783 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !CMD_ENABLE_RSSI_POLL rt=316288987/612586235 1 0

05-17 20:28:53.186 3672 5362 V WifiDisplayAdapter: getWifiDisplayStatusLocked: result=WifiDisplayStatus{featureState=2, scanState=0, activeDisplayState=0, activeDisplay=null, displays=[], sessionInfo=WifiDisplaySessionInfo: Client/Owner: Client GroupId: Passphrase: SessionId: 0 IP Address: , connectedState=-1}

05-17 20:28:53.601 3672 5359 D WifiService: getWifiApEnabledState uid=5006

05-17 20:28:53.604 3672 5398 V WifiDisplayAdapter: getWifiDisplayStatusLocked: result=WifiDisplayStatus{featureState=2, scanState=0, activeDisplayState=0, activeDisplay=null, displays=[], sessionInfo=WifiDisplaySessionInfo: Client/Owner: Client GroupId: Passphrase: SessionId: 0 IP Address: , connectedState=-1}

05-17 20:28:54.602 3672 5288 D WifiService: getWifiEnabledState uid=10016

05-17 20:28:54.704 5088 5088 I DiscoveryManager: WifiGuestModeDeviceScanner enabled.

05-17 20:28:54.856 3672 3924 I chatty : uid=1000(system) WifiScanningSer identical 15 lines

05-17 20:28:54.858 3672 3924 I chatty : uid=1000(system) WifiScanningSer identical 26 lines

05-17 20:28:54.874 3672 5288 D WifiService: getWifiEnabledState uid=10016

05-17 20:28:54.882 3672 3886 I WifiStateMachine: There are no configured ssid[" Wifi"] in scanResults

05-17 20:28:54.882 3672 3886 I WifiStateMachine: There are no configured ssid["Free Wifi - "] in scanResults

05-17 20:28:54.888 3672 5288 D WifiService: getWifiEnabledState uid=10161

05-17 20:28:54.973 3672 3886 I chatty : uid=1000(system) WifiStateMachin identical 33 lines

05-17 20:28:54.973 3672 3886 I chatty : uid=1000(system) WifiStateMachin identical 7 lines

05-17 20:28:54.974 3672 3886 I chatty : uid=1000(system) WifiStateMachin identical 14 lines

05-17 20:28:54.975 3672 3886 I chatty : uid=1000(system) WifiStateMachin identical 58 lines

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: mWatchdogAllowedToTrigger: true

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: mWifiIsConnected: false

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: mRecentAvailableNetworks: 2

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: : "" HasEverConnected: true, Failures: {Assoc: 0, Auth: 0, Dhcp: 0}, Age: 0

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: "" HasEverConnected: true, Failures: {Assoc: 0, Auth: 0, Dhcp: 0}, Age: 0

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: mSsidFailureCount:

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: ": 1, HasEverConnected: true, Failures: {Assoc: 0, Auth: 0, Dhcp: 0}

05-17 20:28:54.977 3672 3886 V WifiLastResortWatchdog: "": 1, HasEverConnected: true, Failures: {Assoc: 0, Auth: 0, Dhcp: 0}

05-17 20:28:55.071 3672 5395 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.179 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !CMD_ASSOCIATED_BSSID rt=316291383/612588631 0 0 BSSID=04:d9:f5:73:77:cc Target=04:d9:f5:73:77:cc roam=false

05-17 20:28:55.199 3672 5395 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.203 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !EAP_EVENT_MESSAGE rt=316291406/612588655 CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully (based on lower layer success)

05-17 20:28:55.224 3672 5288 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.256 3672 5395 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.280 3672 5288 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.289 3672 4498 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.339 1142 1142 D RCS-ContactsImsCommon: isEpdgOrWifi : false

05-17 20:28:55.434 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !CMD_INSTALL_PACKET_FILTER rt=316291637/612588886 len=173

05-17 20:28:55.480 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !CMD_UPDATE_LINKPROPERTIES rt=316291684/612588932 0 0

05-17 20:28:55.560 1142 1142 D RCS-ContactsImsCommon: isEpdgOrWifi : false

05-17 20:28:55.664 1142 1142 D RCS-ContactsImsCommon: isEpdgOrWifi : false

05-17 20:28:55.785 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !CMD_UPDATE_LINKPROPERTIES rt=316291989/612589237 0 0

05-17 20:28:55.799 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !CMD_INSTALL_PACKET_FILTER rt=316292002/612589251 len=186

05-17 20:28:55.801 3672 4498 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.810 3672 3886 D WifiStateMachine: WifiOrSoftApModeState !CMD_UPDATE_LINKPROPERTIES rt=316292013/612589262 0 0 v4r

05-17 20:28:55.838 4680 4680 I GeofencerStateMachine: sendWifiConnectivityChanged: connectivity=true

05-17 20:28:55.845 3672 5377 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:55.903 12914 12914 V AllShare(ASF-DMC): SystemEventMonitor.checkWifiState - WIFI STATE: CONNECTED

05-17 20:28:56.006 3672 4498 D WifiService: getWifiEnabledState uid=10235

05-17 20:28:56.037 12914 12914 V AllShare(ASF-DMC): SystemEventMonitor.checkWifiState - WIFI STATE: CONNECTED

05-17 20:28:56.040 3672 4083 E WifiConnectivityMonitor: current state: com.android.server.wifi.WifiConnectivityMonitor$CaptivePortalState@2fef9ce

05-17 20:28:56.044 1142 1142 D RCS-ContactsImsCommon: isEpdgOrWifi : false

05-17 20:28:56.146 1142 1142 D RCS-ContactsImsCommon: isEpdgOrWifi : false

05-17 20:28:56.156 3672 4083 E WifiConnectivityMonitor: current state: com.android.server.wifi.WifiConnectivityMonitor$CaptivePortalState@2fef9ce

05-17 20:28:56.256 4445 4622 D PdnController: onWifiConnected:

05-17 20:28:56.259 4445 4622 D RegiMgrBase<0>: onDataConnectionStateChanged(): networkType [LTE], isWifiConnected [true]

05-17 20:28:56.283 4445 4615 D CapabilityProvider: mWifiStateListener.onAvailable(): mIsWifiConnected [true]

05-17 20:28:56.303 4445 4622 D VolteServiceModule: onDataConnectionStateChanged(): networkType [LTE]isWifiConnected [true], phoneId [0]

05-17 20:28:56.501 4445 4622 D RegiMgrBase<0>: onNetworkEventChanged:Changed Event: isWifiConnected(new= true, old= false),