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
This commit is contained in:
Sreeram Ramachandran
2013-08-27 14:49:23 -07:00
parent 107e2d418b
commit 268f329521

View File

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