summaryrefslogtreecommitdiffstats
path: root/service/java/com/android/server/wifi/WifiNetworkFactory.java
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2018-11-21 14:50:57 -0800
committerRoshan Pius <rpius@google.com>2018-11-29 13:01:28 -0800
commit1706f32efde7d0941080beaf52f91dab3de02a81 (patch)
tree2fda8a0c0a5981b13b0ba086f0b3effe01638e67 /service/java/com/android/server/wifi/WifiNetworkFactory.java
parentab7ef28ce56ff88255e95c7977175dc323621ea8 (diff)
downloadandroid_frameworks_opt_net_wifi-1706f32efde7d0941080beaf52f91dab3de02a81.tar.gz
android_frameworks_opt_net_wifi-1706f32efde7d0941080beaf52f91dab3de02a81.tar.bz2
android_frameworks_opt_net_wifi-1706f32efde7d0941080beaf52f91dab3de02a81.zip
WifiNetworkFactory: Defer turning off auto-join
Currently, we turn off auto-join when we start processing a new (specific) network request. Defer this to after the user picks a network from the UI. Bug: 117979585 Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: act.py -c wifi_manager.config -tb dut-name -tc WifiNetworkRequestTest Change-Id: I4b5ded6d01b5247af90fb95bfe1f584ff4f10a7a
Diffstat (limited to 'service/java/com/android/server/wifi/WifiNetworkFactory.java')
-rw-r--r--service/java/com/android/server/wifi/WifiNetworkFactory.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkFactory.java b/service/java/com/android/server/wifi/WifiNetworkFactory.java
index dc2ad87f8..369e36cb5 100644
--- a/service/java/com/android/server/wifi/WifiNetworkFactory.java
+++ b/service/java/com/android/server/wifi/WifiNetworkFactory.java
@@ -382,9 +382,6 @@ public class WifiNetworkFactory extends NetworkFactory {
// TODO(b/113878056): Start UI flow here.
// Trigger periodic scans for finding a network in the request.
startPeriodicScans();
- // Disable Auto-join so that NetworkFactory can take control of the network selection.
- // TODO(b/117979585): Defer turning off auto-join.
- mWifiConnectivityManager.setSpecificNetworkRequestInProgress(true);
}
}
@@ -475,6 +472,9 @@ public class WifiNetworkFactory extends NetworkFactory {
// Cancel the ongoing scans after user selection.
cancelPeriodicScans();
+ // Disable Auto-join so that NetworkFactory can take control of the network connection.
+ mWifiConnectivityManager.setSpecificNetworkRequestInProgress(true);
+
// Mark the network ephemeral so that it's automatically removed at the end of connection.
network.ephemeral = true;
// Store the user selected network.