summaryrefslogtreecommitdiffstats
path: root/packages/SettingsProvider/src/com/android
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SettingsProvider/src/com/android')
-rw-r--r--packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java
index b9a9c24..7a8caf5 100644
--- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java
+++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java
@@ -255,13 +255,13 @@ public class SettingsBackupAgent extends BackupAgentHelper {
// Now build the canonical config key paralleling the WifiConfiguration semantics
final String key;
if (types.get(KeyMgmt.WPA_PSK)) {
- key = bareSsid + KeyMgmt.strings[KeyMgmt.WPA_PSK];
+ key = bareSsid + "-" + KeyMgmt.strings[KeyMgmt.WPA_PSK];
} else if (types.get(KeyMgmt.WPA_EAP) || types.get(KeyMgmt.IEEE8021X)) {
- key = bareSsid + KeyMgmt.strings[KeyMgmt.WPA_EAP];
+ key = bareSsid + "-" + KeyMgmt.strings[KeyMgmt.WPA_EAP];
} else if (hasWepKey) {
- key = bareSsid + "WEP"; // hardcoded this way in WifiConfiguration
+ key = bareSsid + "-WEP"; // hardcoded this way in WifiConfiguration
} else {
- key = bareSsid + KeyMgmt.strings[KeyMgmt.NONE];
+ key = bareSsid + "-" + KeyMgmt.strings[KeyMgmt.NONE];
}
return key;
}