Skip to content

Commit dee5f9d

Browse files
Simon PiriouChromeos LUCI
authored andcommitted
net: l2: ieee802154: shell: fix scan argc validation
Bump the argc check from 3 to 4 as the shell scan command has 3 required parameters, the last being the scan duration: - argv[0] - passive|active - channels - per-channel duration in ms (cherry picked from commit 732a3a5) Original-Signed-off-by: Simon Piriou <[email protected]> GitOrigin-RevId: 732a3a5 Cr-Build-Id: 8709847665304561137 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8709847665304561137 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: I622c091b588e37cea923ba042092b02485a313de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6717684 Commit-Queue: ChromeOS Copybot <[email protected]> Tested-by: ChromeOS Copybot <[email protected]> Bot-Commit: ChromeOS Copybot <[email protected]>
1 parent 4bb4a0c commit dee5f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/ieee802154/ieee802154_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ static int cmd_ieee802154_scan(const struct shell *sh,
227227
uint64_t scan_type;
228228
int ret = 0;
229229

230-
if (argc < 3) {
230+
if (argc < 4) {
231231
shell_help(sh);
232232
return -ENOEXEC;
233233
}

0 commit comments

Comments
 (0)