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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user