summaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorpkanwar <pkanwar@google.com>2017-01-15 09:39:35 -0800
committerpkanwar <pkanwar@google.com>2017-01-18 14:23:19 -0800
commit3112931546f051366df4fd15bd3236f11875a915 (patch)
treea8e960e875c4060f4a915d46315faee32a6fcb34 /service
parent936d25cfe7a682337e9a9c39412650c9ae3ff312 (diff)
downloadandroid_frameworks_opt_net_wifi-3112931546f051366df4fd15bd3236f11875a915.tar.gz
android_frameworks_opt_net_wifi-3112931546f051366df4fd15bd3236f11875a915.tar.bz2
android_frameworks_opt_net_wifi-3112931546f051366df4fd15bd3236f11875a915.zip
DO NOT MERGE: Fix to enable reconnecting to a Carrier network.
We now generate a new Config for each connection attempt. BUG: 30760683 Change-Id: I88393ecc2964e299e80f6f2802dd85a142e1f473
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java b/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
index 3cc471ac3..1e7560346 100644
--- a/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
+++ b/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
@@ -1092,14 +1092,17 @@ public class WifiQualifiedNetworkSelector {
return null;
}
+ WifiConfiguration newUntrustedCandidateConfig =
+ new WifiConfiguration(untrustedCandidateConfig);
+
// Mark this config as ephemeral so it isn't persisted.
- untrustedCandidateConfig.ephemeral = true;
+ newUntrustedCandidateConfig.ephemeral = true;
// Mark this config as a Carrier Network.
- untrustedCandidateConfig.isCarrierNetwork = true;
+ newUntrustedCandidateConfig.isCarrierNetwork = true;
mWifiConfigManager.saveNetworkAndSetCandidate(
- untrustedCandidateConfig, untrustedCarrierScanResult);
- return untrustedCandidateConfig;
+ newUntrustedCandidateConfig, untrustedCarrierScanResult);
+ return newUntrustedCandidateConfig;
}
/**