From 7329361cdce711775542b112663bf71a6e0d5cef Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Wed, 14 Sep 2011 12:31:56 -0700 Subject: Add support to change IPv6 privacy extensions Bug: 3360737 Change-Id: I9136992d05f7abf15bdfd92aad3a3e0c0fe3bee2 --- wifi/java/android/net/wifi/WifiStateMachine.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'wifi/java') 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()) { -- cgit v1.1