diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-22 11:51:06 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-07-22 11:51:06 -0700 |
commit | d72aa3b92c206092d3b3ce563e0ebf25e1a0be07 (patch) | |
tree | 648f49b86f07e108b45480e23c316ec0f7313bc7 /wifi/java/android | |
parent | ba5e889eae1175f5ff220637f48e848d56a96ba0 (diff) | |
parent | 356d4a14aa96cf52c16f7a4d381044ce28b01af3 (diff) | |
download | frameworks_base-d72aa3b92c206092d3b3ce563e0ebf25e1a0be07.zip frameworks_base-d72aa3b92c206092d3b3ce563e0ebf25e1a0be07.tar.gz frameworks_base-d72aa3b92c206092d3b3ce563e0ebf25e1a0be07.tar.bz2 |
am 356d4a14: Merge change 8172 into donut
Merge commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3'
* commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3':
Add the phase2 field for EAP WiFi configuration.
Diffstat (limited to 'wifi/java/android')
-rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index eda2f2d..f85aadd 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -45,6 +45,8 @@ public class WifiConfiguration implements Parcelable { /** {@hide} */ public static final String eapVarName = "eap"; /** {@hide} */ + public static final String phase2VarName = "phase2"; + /** {@hide} */ public static final String identityVarName = "identity"; /** {@hide} */ public static final String anonymousIdentityVarName = "anonymous_identity"; @@ -273,6 +275,11 @@ public class WifiConfiguration implements Parcelable { */ public String eap; /** + * The phase2 authenication could be PAP, MSCHAP, MSCHAP2, GTC. + * {@hide} + */ + public String phase2; + /** * The identity of the user in string, * which is used for the authentication. * {@hide} @@ -314,6 +321,7 @@ public class WifiConfiguration implements Parcelable { for (int i = 0; i < wepKeys.length; i++) wepKeys[i] = null; eap = null; + phase2 = null; identity = null; anonymousIdentity = null; password = null; @@ -399,6 +407,10 @@ public class WifiConfiguration implements Parcelable { if (this.eap != null) { sbuf.append(eap); } + sbuf.append('\n').append(" phase2: "); + if (this.phase2 != null) { + sbuf.append(phase2); + } sbuf.append('\n').append(" Identity: "); if (this.identity != null) { sbuf.append(identity); @@ -486,6 +498,7 @@ public class WifiConfiguration implements Parcelable { writeBitSet(dest, allowedPairwiseCiphers); writeBitSet(dest, allowedGroupCiphers); dest.writeString(eap); + dest.writeString(phase2); dest.writeString(identity); dest.writeString(anonymousIdentity); dest.writeString(password); @@ -516,6 +529,7 @@ public class WifiConfiguration implements Parcelable { config.allowedPairwiseCiphers = readBitSet(in); config.allowedGroupCiphers = readBitSet(in); config.eap = in.readString(); + config.phase2 = in.readString(); config.identity = in.readString(); config.anonymousIdentity = in.readString(); config.password = in.readString(); |