Commit 732a3a5c authored by Simon Piriou's avatar Simon Piriou Committed by Daniel DeGrasse
Browse files

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: default avatarSimon Piriou <spiriou31@gmail.com>
parent 503011d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ static int cmd_ieee802154_scan(const struct shell *sh,
	uint64_t scan_type;
	int ret = 0;

	if (argc < 3) {
	if (argc < 4) {
		shell_help(sh);
		return -ENOEXEC;
	}