Skip to content

Commit df305f4

Browse files
committed
[nrf fromtree] 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: Chaitanya Tata <[email protected]> (cherry picked from commit 2ce295b)
1 parent 0dece4c commit df305f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,9 @@ static int wifi_scan_args_to_params(const struct shell *sh,
601601
state = getopt_state_get();
602602
switch (opt) {
603603
case 't':
604-
if (!strcmp(optarg, "passive")) {
604+
if (!strncasecmp(optarg, "passive", 7)) {
605605
params->scan_type = WIFI_SCAN_TYPE_PASSIVE;
606-
} else if (!strcmp(optarg, "active")) {
606+
} else if (!strncasecmp(optarg, "active", 6)) {
607607
params->scan_type = WIFI_SCAN_TYPE_ACTIVE;
608608
} else {
609609
shell_fprintf(sh, SHELL_ERROR, "Invalid scan type %s\n", optarg);

0 commit comments

Comments
 (0)