summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2018-03-29 17:29:03 +0000
committerMaurice Lam <yukl@google.com>2018-03-29 17:52:57 +0000
commit0bb78000b3700188542ed498637b43838080fdd2 (patch)
tree792f362d3687c67322d084e9233d04623739a262
parent8ae8c20db77518dbcb604199067489ce676ae2ce (diff)
Revert "Revert "WifiStateMachine: remove ssid from NetworkInfo""
This reverts commit 8ae8c20db77518dbcb604199067489ce676ae2ce. Reason for revert: Roll forward Bug: 77254499 Change-Id: Iabdb8aa5270f9829c8141d7727625a765af60011
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index bdc1a602d..43e4dbf44 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -61,7 +61,6 @@ import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiEnterpriseConfig;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
-import android.net.wifi.WifiSsid;
import android.net.wifi.hotspot2.IProvisioningCallback;
import android.net.wifi.hotspot2.OsuProvider;
import android.net.wifi.hotspot2.PasspointConfiguration;
@@ -2790,23 +2789,12 @@ public class WifiStateMachine extends StateMachine {
+ mNetworkInfo.getDetailedState() + " and new state=" + state
+ " hidden=" + hidden);
}
- if (mNetworkInfo.getExtraInfo() != null && mWifiInfo.getSSID() != null
- && !mWifiInfo.getSSID().equals(WifiSsid.NONE)) {
- // Always indicate that SSID has changed
- if (!mNetworkInfo.getExtraInfo().equals(mWifiInfo.getSSID())) {
- if (mVerboseLoggingEnabled) {
- log("setDetailed state send new extra info" + mWifiInfo.getSSID());
- }
- mNetworkInfo.setExtraInfo(mWifiInfo.getSSID());
- sendNetworkStateChangeBroadcast(null);
- }
- }
if (hidden == true) {
return false;
}
if (state != mNetworkInfo.getDetailedState()) {
- mNetworkInfo.setDetailedState(state, null, mWifiInfo.getSSID());
+ mNetworkInfo.setDetailedState(state, null, null);
if (mNetworkAgent != null) {
mNetworkAgent.sendNetworkInfo(mNetworkInfo);
}