[SettingsLib] Fix WPA2 security type string
WPA2 security string was incorrect, set to WPA2-PSK instead of RSN-PSK. This caused a lot of error logs, as well as inaccurate description of the connected network in the Network details dialog. Bug: 130147064 Test: adb logcat | grep SettingsLib.AccessPoint and verify no error logs Test: Verify correct security detail in Network details dialog Change-Id: Iea57985c73b26fc38061694a76fd51ab578ea692
This commit is contained in:
@@ -1460,7 +1460,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
|
||||
|
||||
private static int getPskType(ScanResult result) {
|
||||
boolean wpa = result.capabilities.contains("WPA-PSK");
|
||||
boolean wpa2 = result.capabilities.contains("WPA2-PSK");
|
||||
boolean wpa2 = result.capabilities.contains("RSN-PSK");
|
||||
if (wpa2 && wpa) {
|
||||
return PSK_WPA_WPA2;
|
||||
} else if (wpa2) {
|
||||
|
||||
Reference in New Issue
Block a user