From 3036dc0533abd6a89d5d0df0f3d9013aa294cbb3 Mon Sep 17 00:00:00 2001 From: Miquel Raynal Date: Mon, 13 Feb 2023 18:47:03 +0100 Subject: [PATCH] iwpan: Allow the phy shortcut for scanning commands Allow running: iwpan phy scan trigger ... iwpan phy scan abort ... Aside with the existing: iwpan dev scan trigger ... iwpan dev scan abort ... This change does not apply easily to the TOPLEVEL(scan) command, so we keep this one more constrained for simplicity. Signed-off-by: Miquel Raynal Signed-off-by: Stefan Schmidt --- src/scan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scan.c b/src/scan.c index 993e367..8f23212 100644 --- a/src/scan.c +++ b/src/scan.c @@ -545,11 +545,15 @@ TOPLEVEL(scan, "type [page ] [channels ] [duration [page ] [channels ] [duration ]", NL802154_CMD_TRIGGER_SCAN, 0, CIB_NETDEV, scan_trigger_handler, "Launch scanning on this virtual interface with the given configuration.\n" SCAN_TYPES); +COMMAND(scan, trigger, + "type [page ] [channels ] [duration ]", + NL802154_CMD_TRIGGER_SCAN, 0, CIB_PHY, scan_trigger_handler, NULL); SECTION(beacons);