From 242096832b552081dc602fe81d9c0fd0a5103ad2 Mon Sep 17 00:00:00 2001 From: Chung-yih Wang Date: Tue, 7 Jul 2009 21:58:13 +0800 Subject: Add header 'blob://' in front of the cert/key names in wpa_supplicant.conf. 1. This addition is from CL 6082 change in wpa_supplicant. 2. Fix the empty password pop-up for EAP. --- src/com/android/settings/wifi/AccessPointDialog.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/com/android/settings/wifi/AccessPointDialog.java b/src/com/android/settings/wifi/AccessPointDialog.java index bf2007a..c9f511b 100644 --- a/src/com/android/settings/wifi/AccessPointDialog.java +++ b/src/com/android/settings/wifi/AccessPointDialog.java @@ -84,6 +84,7 @@ public class AccessPointDialog extends AlertDialog implements DialogInterface.On AccessPointState.WEP_PASSWORD_HEX }; private static final String NOT_APPLICABLE = "N/A"; + private static final String BLOB_HEADER = "blob://"; // Button positions, default to impossible values private int mConnectButtonPos = Integer.MAX_VALUE; @@ -528,7 +529,8 @@ public class AccessPointDialog extends AlertDialog implements DialogInterface.On if (passwordIsEmpty && (!mState.hasPassword() || mMode == MODE_RETRY_PASSWORD) && (mState.security != null) && - !mState.security.equals(AccessPointState.OPEN)) { + !mState.security.equals(AccessPointState.OPEN) && + !mState.isEnterprise()) { new AlertDialog.Builder(getContext()) .setTitle(R.string.error_title) .setIcon(android.R.drawable.ic_dialog_alert) @@ -642,12 +644,12 @@ public class AccessPointDialog extends AlertDialog implements DialogInterface.On value = mCertTool.getUserCertificate(key); if (!TextUtils.isEmpty(value)) { mState.setEnterpriseField(AccessPointState.CLIENT_CERT, - value); + BLOB_HEADER + value); } value = mCertTool.getUserPrivateKey(key); if (!TextUtils.isEmpty(value)) { mState.setEnterpriseField(AccessPointState.PRIVATE_KEY, - value); + BLOB_HEADER + value); } } spinner = mCaCertSpinner; @@ -657,7 +659,7 @@ public class AccessPointDialog extends AlertDialog implements DialogInterface.On value = mCertTool.getCaCertificate(key); if (!TextUtils.isEmpty(value)) { mState.setEnterpriseField(AccessPointState.CA_CERT, - value); + BLOB_HEADER + value); } } switch (securityType) { -- cgit v1.1