Commit 2ce295b7 authored by Chaitanya Tata's avatar Chaitanya Tata Committed by David Leach
Browse files

wifi: shell: Fix missing case sensitivity



This was missed in earlier that tried to fix all string comparisons to
use case insensitive comparison.

Signed-off-by: default avatarChaitanya Tata <Chaitanya.Tata@nordicsemi.no>
parent f32e6865
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -600,9 +600,9 @@ static int wifi_scan_args_to_params(const struct shell *sh,
		state = getopt_state_get();
		switch (opt) {
		case 't':
			if (!strcmp(optarg, "passive")) {
			if (!strncasecmp(optarg, "passive", 7)) {
				params->scan_type = WIFI_SCAN_TYPE_PASSIVE;
			} else if (!strcmp(optarg, "active")) {
			} else if (!strncasecmp(optarg, "active", 6)) {
				params->scan_type = WIFI_SCAN_TYPE_ACTIVE;
			} else {
				shell_fprintf(sh, SHELL_ERROR, "Invalid scan type %s\n", optarg);