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

Commit 0e6b3763 authored by Hai Shalom's avatar Hai Shalom
Browse files

[WPA3] Fix typo in AP key comparison method

Mistakenly used mKey instead of compareTo String variable
to extract compareTo substring.

Bug: 132610950
Test: Connect to various WPA2/WPA3 APs
Change-Id: Ic10f5ed969deace6f1d59811512a2f788256acb6
parent b6b102f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1240,7 +1240,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
                // Special handling for PSK-SAE transition mode. If the AP has advertised both,
                // we compare the key with both PSK and SAE for a match.
                return TextUtils.equals(mKey.substring(0, mKey.lastIndexOf(',')),
                        compareTo.substring(0, mKey.lastIndexOf(',')));
                        compareTo.substring(0, compareTo.lastIndexOf(',')));
            }
        }
        return mKey.equals(compareTo);