diff options
author | Robert Greenwalt <robdroid@android.com> | 2010-08-13 14:16:12 -0700 |
---|---|---|
committer | Robert Greenwalt <robdroid@android.com> | 2010-08-13 15:53:13 -0700 |
commit | b738fb9938631a2e4540f9a9308f49e6be5565b8 (patch) | |
tree | cfca74d28113fdc7a0282a10b04c2df90a2582e0 /wifi | |
parent | e05184f271f9882a5bf828e353aea40e0c06ff69 (diff) | |
download | frameworks_base-b738fb9938631a2e4540f9a9308f49e6be5565b8.zip frameworks_base-b738fb9938631a2e4540f9a9308f49e6be5565b8.tar.gz frameworks_base-b738fb9938631a2e4540f9a9308f49e6be5565b8.tar.bz2 |
DO NOT MERGE Always set/remove default routes.
Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on teh same interface.
Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.
bug:2865974
Change-Id: Ifdf49080fa0413a4d826813706c809975a562dfa
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateTracker.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateTracker.java b/wifi/java/android/net/wifi/WifiStateTracker.java index 75a78d4..f57df62 100644 --- a/wifi/java/android/net/wifi/WifiStateTracker.java +++ b/wifi/java/android/net/wifi/WifiStateTracker.java @@ -1132,7 +1132,8 @@ public class WifiStateTracker extends NetworkStateTracker { setDetailedState(DetailedState.CONNECTED); sendNetworkStateChangeBroadcast(mWifiInfo.getBSSID()); } else { - mTarget.sendEmptyMessage(EVENT_CONFIGURATION_CHANGED); + msg = mTarget.obtainMessage(EVENT_CONFIGURATION_CHANGED, mNetworkInfo); + msg.sendToTarget(); } if (LOCAL_LOGD) Log.v(TAG, "IP configuration: " + mDhcpInfo); // Wi-Fi interface configuration state changed: @@ -2476,7 +2477,8 @@ public class WifiStateTracker extends NetworkStateTracker { resetConnections(true); configureInterface(); if (mUseStaticIp) { - mTarget.sendEmptyMessage(EVENT_CONFIGURATION_CHANGED); + Message msg = mTarget.obtainMessage(EVENT_CONFIGURATION_CHANGED, mNetworkInfo); + msg.sendToTarget(); } } } |