Skip to content

Commit 79c22ba

Browse files
spiriouseyoungjeong
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 Signed-off-by: Simon Piriou <spiriou31@gmail.com>
1 parent dc423a3 commit 79c22ba

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)