am df959707: am 7fe95529: Merge "Revert the configKey generation algorithm to what it was in K." into lmp-dev

* commit 'df959707ff086ae1ffe516b516bfd99ac463b803':
  Revert the configKey generation algorithm to what it was in K.
This commit is contained in:
Lorenzo Colitti
2014-10-02 11:18:50 +00:00
committed by Android Git Automerger

View File

@@ -1222,18 +1222,15 @@ public class WifiConfiguration implements Parcelable {
if (allowCached && mCachedConfigKey != null) { if (allowCached && mCachedConfigKey != null) {
key = mCachedConfigKey; key = mCachedConfigKey;
} else { } else {
key = this.SSID; if (allowedKeyManagement.get(KeyMgmt.WPA_PSK)) {
if (key == null) key = SSID + KeyMgmt.strings[KeyMgmt.WPA_PSK];
key = ""; } else if (allowedKeyManagement.get(KeyMgmt.WPA_EAP) ||
if (this.wepKeys[0] != null) { allowedKeyManagement.get(KeyMgmt.IEEE8021X)) {
key = key + "-WEP"; key = SSID + KeyMgmt.strings[KeyMgmt.WPA_EAP];
} } else if (wepKeys[0] != null) {
if (this.allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { key = SSID + "WEP";
key = key + "-" + KeyMgmt.strings[KeyMgmt.WPA_PSK]; } else {
} key = SSID + KeyMgmt.strings[KeyMgmt.NONE];
if (this.allowedKeyManagement.get(KeyMgmt.WPA_EAP) ||
this.allowedKeyManagement.get(KeyMgmt.IEEE8021X)) {
key = key + "-" + KeyMgmt.strings[KeyMgmt.WPA_EAP];
} }
mCachedConfigKey = key; mCachedConfigKey = key;
} }