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

Commit 268f3295 authored by Sreeram Ramachandran's avatar Sreeram Ramachandran
Browse files

Fix channel set option in wifi batch scan command.

Fix by not including extraneous delimiters, and changing the delimiter from a
space to a comma.

Bug: 10444428
Change-Id: Ia3197045d44a2f959316935ae085575500e65459
parent 107e2d41
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -268,7 +268,11 @@ public class WifiNative {
        }
        if (settings.channelSet != null && !settings.channelSet.isEmpty()) {
            cmd += " CHANNEL=<";
            for (String channel : settings.channelSet) cmd += " " + channel;
            int i = 0;
            for (String channel : settings.channelSet) {
                cmd += (i > 0 ? "," : "") + channel;
                ++i;
            }
            cmd += ">";
        }
        if (settings.maxApForDistance != BatchedScanSettings.UNSPECIFIED) {