Skip to content

Commit

Permalink
iwpan: Allow the phy shortcut for scanning commands
Browse files Browse the repository at this point in the history
Allow running:
iwpan phy <phy> scan trigger ...
iwpan phy <phy> scan abort ...

Aside with the existing:
iwpan dev <dev> scan trigger ...
iwpan dev <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 <miquel.raynal@bootlin.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
  • Loading branch information
miquelraynal authored and Stefan-Schmidt committed Dec 7, 2023
1 parent bd7c57b commit 3036dc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scan.c
Expand Up @@ -545,11 +545,15 @@ TOPLEVEL(scan, "type <type> [page <page>] [channels <bitfield>] [duration <durat
SCAN_TYPES);
COMMAND(scan, abort, NULL, NL802154_CMD_ABORT_SCAN, 0, CIB_NETDEV, scan_abort_handler,
"Abort ongoing scanning on this virtual interface");
COMMAND(scan, abort, NULL, NL802154_CMD_ABORT_SCAN, 0, CIB_PHY, scan_abort_handler, NULL);
COMMAND(scan, trigger,
"type <type> [page <page>] [channels <bitfield>] [duration <duration-order>]",
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 <type> [page <page>] [channels <bitfield>] [duration <duration-order>]",
NL802154_CMD_TRIGGER_SCAN, 0, CIB_PHY, scan_trigger_handler, NULL);

SECTION(beacons);

Expand Down

0 comments on commit 3036dc0

Please sign in to comment.