diff options
author | Irfan Sheriff <isheriff@google.com> | 2010-06-02 15:25:13 -0700 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2010-06-02 16:31:20 -0700 |
commit | de3e56650d3e12b0bdfeb9311b71e0bb3a80ccc1 (patch) | |
tree | 82827ca2424d0cb5a7371400ec2c7c7bb19adeef /src | |
parent | b0bcf9f7f50b56cb15a72be39fe11fe1351992c1 (diff) | |
download | packages_apps_Settings-de3e56650d3e12b0bdfeb9311b71e0bb3a80ccc1.zip packages_apps_Settings-de3e56650d3e12b0bdfeb9311b71e0bb3a80ccc1.tar.gz packages_apps_Settings-de3e56650d3e12b0bdfeb9311b71e0bb3a80ccc1.tar.bz2 |
Add phase2 authentication settings
Bug: 2734813
Change-Id: Iaf4455577be888f6c78f490b2cc046adef41403e
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/wifi/WifiDialog.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/settings/wifi/WifiDialog.java b/src/com/android/settings/wifi/WifiDialog.java index f85d054..a8bf717 100644 --- a/src/com/android/settings/wifi/WifiDialog.java +++ b/src/com/android/settings/wifi/WifiDialog.java @@ -60,6 +60,7 @@ class WifiDialog extends AlertDialog implements View.OnClickListener, private Spinner mEapMethod; private Spinner mEapCaCert; + private Spinner mPhase2; private Spinner mEapUserCert; private TextView mEapIdentity; private TextView mEapAnonymous; @@ -141,6 +142,9 @@ class WifiDialog extends AlertDialog implements View.OnClickListener, config.allowedKeyManagement.set(KeyMgmt.WPA_EAP); config.allowedKeyManagement.set(KeyMgmt.IEEE8021X); config.eap.setValue((String) mEapMethod.getSelectedItem()); + + config.phase2.setValue((mPhase2.getSelectedItemPosition() == 0) ? "" : + "auth=" + mPhase2.getSelectedItem()); config.ca_cert.setValue((mEapCaCert.getSelectedItemPosition() == 0) ? "" : KEYSTORE_SPACE + Credentials.CA_CERTIFICATE + (String) mEapCaCert.getSelectedItem()); @@ -302,6 +306,7 @@ class WifiDialog extends AlertDialog implements View.OnClickListener, if (mEapMethod == null) { mEapMethod = (Spinner) mView.findViewById(R.id.method); + mPhase2 = (Spinner) mView.findViewById(R.id.phase2); mEapCaCert = (Spinner) mView.findViewById(R.id.ca_cert); mEapUserCert = (Spinner) mView.findViewById(R.id.user_cert); mEapIdentity = (TextView) mView.findViewById(R.id.identity); @@ -313,6 +318,7 @@ class WifiDialog extends AlertDialog implements View.OnClickListener, if (mAccessPoint != null && mAccessPoint.networkId != -1) { WifiConfiguration config = mAccessPoint.getConfig(); setSelection(mEapMethod, config.eap.value()); + setSelection(mPhase2, config.phase2.value()); setCertificate(mEapCaCert, Credentials.CA_CERTIFICATE, config.ca_cert.value()); setCertificate(mEapUserCert, Credentials.USER_PRIVATE_KEY, |