summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorRobert Greenwalt <robdroid@android.com>2010-08-13 14:16:12 -0700
committerRobert Greenwalt <robdroid@android.com>2010-08-13 15:53:13 -0700
commitb738fb9938631a2e4540f9a9308f49e6be5565b8 (patch)
treecfca74d28113fdc7a0282a10b04c2df90a2582e0 /wifi
parente05184f271f9882a5bf828e353aea40e0c06ff69 (diff)
downloadframeworks_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.java6
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();
}
}
}