Merge "Fix channel set option in wifi batch scan command." into klp-dev

This commit is contained in:
Sreeram Ramachandran
2013-08-27 22:45:30 +00:00
committed by Android (Google) Code Review

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