command: handle the new active/passive scanning flag

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-06-10 15:17:37 +02:00
parent 5d598b31a8
commit 24f7354bec

View File

@@ -1,6 +1,7 @@
{%
let verbose = args.verbose ? true : false;
ctx.call("wifi", "scan");
let active = args.active ? true : false;
ctx.call("wifi", "scan", { active });
system("sleep 5");
let scan = ctx.call("wifi", "scan_dump", {verbose});
result_json({