File tree Expand file tree Collapse file tree
wifi/java/android/net/wifi Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1222,18 +1222,15 @@ public String configKey(boolean allowCached) {
12221222 if (allowCached && mCachedConfigKey != null ) {
12231223 key = mCachedConfigKey ;
12241224 } else {
1225- key = this .SSID ;
1226- if (key == null )
1227- key = "" ;
1228- if (this .wepKeys [0 ] != null ) {
1229- key = key + "-WEP" ;
1230- }
1231- if (this .allowedKeyManagement .get (KeyMgmt .WPA_PSK )) {
1232- key = key + "-" + KeyMgmt .strings [KeyMgmt .WPA_PSK ];
1233- }
1234- if (this .allowedKeyManagement .get (KeyMgmt .WPA_EAP ) ||
1235- this .allowedKeyManagement .get (KeyMgmt .IEEE8021X )) {
1236- key = key + "-" + KeyMgmt .strings [KeyMgmt .WPA_EAP ];
1225+ if (allowedKeyManagement .get (KeyMgmt .WPA_PSK )) {
1226+ key = SSID + KeyMgmt .strings [KeyMgmt .WPA_PSK ];
1227+ } else if (allowedKeyManagement .get (KeyMgmt .WPA_EAP ) ||
1228+ allowedKeyManagement .get (KeyMgmt .IEEE8021X )) {
1229+ key = SSID + KeyMgmt .strings [KeyMgmt .WPA_EAP ];
1230+ } else if (wepKeys [0 ] != null ) {
1231+ key = SSID + "WEP" ;
1232+ } else {
1233+ key = SSID + KeyMgmt .strings [KeyMgmt .NONE ];
12371234 }
12381235 mCachedConfigKey = key ;
12391236 }
You can’t perform that action at this time.
0 commit comments