Merge "Fix channel set option in wifi batch scan command." into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d8d4c51e3b
@@ -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