summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorNate Jiang <qiangjiang@google.com>2020-03-13 19:02:33 -0700
committerNate Jiang <qiangjiang@google.com>2020-03-13 19:50:21 -0700
commit1332ed209c6d66c332e13b94b4786699134e20a7 (patch)
treee7af08c8a9ef1add355f33d72ad827f2cd1ef737 /libs
parentc5a3615638b731f2bff115f9d376af3b107662e0 (diff)
Fix the user disconnect
Should use SSIDa from wificonfig which is surrounded by quotes to call disableEphemeralNetwork Bug: 136005248 Test: manually test Change-Id: Id3941f932c7b925756fe8488a95cf128c695d44a
Diffstat (limited to 'libs')
-rw-r--r--libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java
index e72914bce..642313a2b 100644
--- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java
+++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/StandardWifiEntry.java
@@ -366,7 +366,7 @@ public class StandardWifiEntry extends WifiEntry {
DisconnectCallback.DISCONNECT_STATUS_FAILURE_UNKNOWN);
}
}, 10_000 /* delayMillis */);
- mWifiManager.disableEphemeralNetwork(mSsid);
+ mWifiManager.disableEphemeralNetwork(mWifiConfig.SSID);
mWifiManager.disconnect();
}
}