diff options
author | Paul Jensen <pauljensen@google.com> | 2015-07-29 13:52:02 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-29 13:52:02 +0000 |
commit | 308139425e697536304be55a5865aae7a290fb1d (patch) | |
tree | 365aaf65d09baa7c8d719fac57d489db0d2864f6 /services | |
parent | 7157c2ca81cb2c942a1e94cf1a0344babf6a8bd6 (diff) | |
parent | f95d220308492550b7bd6c019e4c725a810cd050 (diff) | |
download | frameworks_base-308139425e697536304be55a5865aae7a290fb1d.zip frameworks_base-308139425e697536304be55a5865aae7a290fb1d.tar.gz frameworks_base-308139425e697536304be55a5865aae7a290fb1d.tar.bz2 |
Merge "Disable WiFi autojoin when user decides via "Stay connected?" dialog" into mnc-dev
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 76d2258..0b610ae 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -2378,14 +2378,10 @@ public class ConnectivityService extends IConnectivityManager.Stub } if (!accept) { - // Tell the NetworkAgent that the network does not have Internet access (because that's - // what we just told the user). This will hint to Wi-Fi not to autojoin this network in - // the future. We do this now because NetworkMonitor might not yet have finished - // validating and thus we might not yet have received an EVENT_NETWORK_TESTED. - nai.asyncChannel.sendMessage(NetworkAgent.CMD_REPORT_NETWORK_STATUS, - NetworkAgent.INVALID_NETWORK, 0, null); - // TODO: Tear the network down once we have determined how to tell WifiStateMachine not - // to reconnect to it immediately. http://b/20739299 + // Tell the NetworkAgent to not automatically reconnect to the network. + nai.asyncChannel.sendMessage(NetworkAgent.CMD_PREVENT_AUTOMATIC_RECONNECT); + // Teardown the nework. + teardownUnneededNetwork(nai); } } |