* This is not the case on the client side. We need to
* make things consistent and clean it up
*/
- config.SSID = mSsid.getText().toString().replaceAll("\"","");
+ config.SSID = mSsid.getText().toString();
switch (mSecurityType) {
case AccessPoint.SECURITY_NONE:
config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN);
if (mPassword.length() != 0) {
String password = mPassword.getText().toString();
- if (password.matches("[0-9A-Fa-f]{64}")) {
- config.preSharedKey = password;
- } else {
- config.preSharedKey = '"' + password + '"';
- }
+ config.preSharedKey = password;
}
return config;
}
break;
case AccessPoint.SECURITY_PSK:
String str = mWifiConfig.preSharedKey;
- if (!str.matches("[0-9A-Fa-f]{64}")) {
- str = str.substring(1,str.length()-1);
- }
mPassword.setText(str);
mSecurity.setSelection(WPA_INDEX);
break;