diff options
author | Irfan Sheriff <isheriff@google.com> | 2011-09-14 12:31:56 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2011-09-14 12:31:56 -0700 |
commit | 7329361cdce711775542b112663bf71a6e0d5cef (patch) | |
tree | daaca6978c44d8af2de3f7cd7d0a543899128bb3 /wifi/java | |
parent | 651cdfcbac6245f570475991588ddc2d30265e8d (diff) | |
download | frameworks_base-7329361cdce711775542b112663bf71a6e0d5cef.zip frameworks_base-7329361cdce711775542b112663bf71a6e0d5cef.tar.gz frameworks_base-7329361cdce711775542b112663bf71a6e0d5cef.tar.bz2 |
Add support to change IPv6 privacy extensions
Bug: 3360737
Change-Id: I9136992d05f7abf15bdfd92aad3a3e0c0fe3bee2
Diffstat (limited to 'wifi/java')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateMachine.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java index 3b29d40..e0598a7 100644 --- a/wifi/java/android/net/wifi/WifiStateMachine.java +++ b/wifi/java/android/net/wifi/WifiStateMachine.java @@ -1917,15 +1917,17 @@ public class WifiStateMachine extends StateMachine { Log.e(TAG, "Failed to reload STA firmware " + e); // continue } - //A runtime crash can leave the interface up and - //this affects connectivity when supplicant starts up. - //Ensure interface is down before a supplicant start. - try { + try { + //A runtime crash can leave the interface up and + //this affects connectivity when supplicant starts up. + //Ensure interface is down before a supplicant start. mNwService.setInterfaceDown(mInterfaceName); + //Set privacy extensions + mNwService.setInterfaceIpv6PrivacyExtensions(mInterfaceName, true); } catch (RemoteException re) { - if (DBG) Log.w(TAG, "Unable to bring down wlan interface: " + re); + if (DBG) Log.w(TAG, "Unable to change interface settings: " + re); } catch (IllegalStateException ie) { - if (DBG) Log.w(TAG, "Unable to bring down wlan interface: " + ie); + if (DBG) Log.w(TAG, "Unable to change interface settings: " + ie); } if(WifiNative.startSupplicant()) { |