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

Commit 54a072fc authored by Murron Li's avatar Murron Li Committed by Steve Kondik
Browse files

Support AP which only has a "space" character in its SSID

Now we can connect to an AP which only has a space character in its
SSID. Names with space at the beginning and/or will also work. The
earlier troublesome "-=^-^=-" still works.

Change-Id: Ie1de3bd162fbd992ccad5e1b5bca9c163e49e36d
parent 9fc6bd7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1530,7 +1530,7 @@ public class WifiService extends IWifiManager.Stub {
                        scanResult.frequency = frequency;
                    } else {
                        // Do not add scan results that have no SSID set
                        if (0 < ssid.trim().length()) {
                        if (0 < ssid.length()) {
                            scanResult =
                                new ScanResult(
                                    ssid, bssid, flags, level, frequency);
+1 −1
Original line number Diff line number Diff line
@@ -1346,7 +1346,7 @@ public class WifiStateTracker extends NetworkStateTracker {
        int netId = -1;
        String[] lines = reply.split("\n");
        for (String line : lines) {
            String[] prop = line.split(" *= *", 2);
            String[] prop = line.split(" *=", 2);
            if (prop.length < 2)
                continue;
            String name = prop[0];