diff options
author | Glen Kuhne <kuh@google.com> | 2017-03-29 19:09:16 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-03-29 19:09:16 +0000 |
commit | bab957bb2055ee595f66bf4a87614efb1327b905 (patch) | |
tree | 7280988a735055a7b36d193be13513a745c1adb8 /service | |
parent | 6490231d83f30b48ac48e62e707ed68e1f3ef730 (diff) | |
parent | 47b8bdb173893084115ead905ea7ffe847840ca2 (diff) |
Merge "Reset & Stop updating WifiInfo outside ConnectMode" into oc-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiStateMachine.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java index d6ef5e870..cc35df2e6 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -4432,10 +4432,6 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss case CMD_START_SCAN: handleScanRequest(message); break; - case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT: - SupplicantState state = handleSupplicantStateChange(message); - if (mVerboseLoggingEnabled) log("SupplicantState= " + state); - break; default: return NOT_HANDLED; } @@ -4640,7 +4636,8 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss if (!mWifiNative.removeAllNetworks()) { loge("Failed to remove networks on entering connect mode"); } - + mWifiInfo.reset(); + mWifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); // Let the system know that wifi is available in client mode. setWifiState(WIFI_STATE_ENABLED); @@ -4672,6 +4669,8 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss if (!mWifiNative.removeAllNetworks()) { loge("Failed to remove networks on exiting connect mode"); } + mWifiInfo.reset(); + mWifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); } @Override |