Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6194253 authored by Hai Shalom's avatar Hai Shalom
Browse files

[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
parent dd07ae57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {