[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:
Hai Shalom
2019-04-08 14:07:42 -07:00
parent dd07ae579c
commit e61942535b

View File

@@ -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) {