Loading wifi/java/android/net/wifi/WifiStateMachine.java +7 −5 Original line number Diff line number Diff line Loading @@ -2301,11 +2301,13 @@ public class WifiStateMachine extends StateMachine { mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; } private void handleSupplicantConnectionLoss() { private void handleSupplicantConnectionLoss(boolean killSupplicant) { /* Socket connection can be lost when we do a graceful shutdown * or when the driver is hung. Ensure supplicant is stopped here. */ if (killSupplicant){ mWifiMonitor.killSupplicant(mP2pSupported); } mWifiNative.closeSupplicantConnection(); sendSupplicantConnectionChangedBroadcast(false); setWifiState(WIFI_STATE_DISABLED); Loading Loading @@ -2852,7 +2854,7 @@ public class WifiStateMachine extends StateMachine { break; case WifiMonitor.SUP_DISCONNECTION_EVENT: /* Supplicant connection lost */ loge("Connection lost, restart supplicant"); handleSupplicantConnectionLoss(); handleSupplicantConnectionLoss(true); handleNetworkDisconnect(); mSupplicantStateTracker.sendMessage(CMD_RESET_SUPPLICANT_STATE); if (mP2pSupported) { Loading Loading @@ -2917,13 +2919,13 @@ public class WifiStateMachine extends StateMachine { break; case WifiMonitor.SUP_DISCONNECTION_EVENT: if (DBG) log("Supplicant connection lost"); handleSupplicantConnectionLoss(); handleSupplicantConnectionLoss(false); transitionTo(mInitialState); break; case CMD_STOP_SUPPLICANT_FAILED: if (message.arg1 == mSupplicantStopFailureToken) { loge("Timed out on a supplicant stop, kill and proceed"); handleSupplicantConnectionLoss(); handleSupplicantConnectionLoss(true); transitionTo(mInitialState); } break; Loading Loading
wifi/java/android/net/wifi/WifiStateMachine.java +7 −5 Original line number Diff line number Diff line Loading @@ -2301,11 +2301,13 @@ public class WifiStateMachine extends StateMachine { mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; } private void handleSupplicantConnectionLoss() { private void handleSupplicantConnectionLoss(boolean killSupplicant) { /* Socket connection can be lost when we do a graceful shutdown * or when the driver is hung. Ensure supplicant is stopped here. */ if (killSupplicant){ mWifiMonitor.killSupplicant(mP2pSupported); } mWifiNative.closeSupplicantConnection(); sendSupplicantConnectionChangedBroadcast(false); setWifiState(WIFI_STATE_DISABLED); Loading Loading @@ -2852,7 +2854,7 @@ public class WifiStateMachine extends StateMachine { break; case WifiMonitor.SUP_DISCONNECTION_EVENT: /* Supplicant connection lost */ loge("Connection lost, restart supplicant"); handleSupplicantConnectionLoss(); handleSupplicantConnectionLoss(true); handleNetworkDisconnect(); mSupplicantStateTracker.sendMessage(CMD_RESET_SUPPLICANT_STATE); if (mP2pSupported) { Loading Loading @@ -2917,13 +2919,13 @@ public class WifiStateMachine extends StateMachine { break; case WifiMonitor.SUP_DISCONNECTION_EVENT: if (DBG) log("Supplicant connection lost"); handleSupplicantConnectionLoss(); handleSupplicantConnectionLoss(false); transitionTo(mInitialState); break; case CMD_STOP_SUPPLICANT_FAILED: if (message.arg1 == mSupplicantStopFailureToken) { loge("Timed out on a supplicant stop, kill and proceed"); handleSupplicantConnectionLoss(); handleSupplicantConnectionLoss(true); transitionTo(mInitialState); } break; Loading