@@ -1147,6 +1147,9 @@ static int __wifi_args_to_params(const struct shell *sh, size_t argc, char *argv
1147
1147
case 'g' :
1148
1148
params -> ignore_broadcast_ssid = shell_strtol (state -> optarg , 10 , & ret );
1149
1149
break ;
1150
+ case 'i' :
1151
+ /* Unused, but parsing to avoid unknown option error */
1152
+ break ;
1150
1153
case 'h' :
1151
1154
return - ENOEXEC ;
1152
1155
default :
@@ -2142,6 +2145,10 @@ static int twt_args_to_params(const struct shell *sh, size_t argc, char *argv[],
2142
2145
params -> setup .twt_mantissa = (uint16_t )value ;
2143
2146
break ;
2144
2147
2148
+ case 'i' :
2149
+ /* Unused, but parsing to avoid unknown option error */
2150
+ break ;
2151
+
2145
2152
case 'h' :
2146
2153
return - ENOEXEC ;
2147
2154
}
@@ -2452,6 +2459,9 @@ static int wifi_ap_config_args_to_params(const struct shell *sh, size_t argc, ch
2452
2459
params -> type |= WIFI_AP_CONFIG_PARAM_VHT_CAPAB ;
2453
2460
break ;
2454
2461
#endif
2462
+ case 'i' :
2463
+ /* Unused, but parsing to avoid unknown option error */
2464
+ break ;
2455
2465
case 'h' :
2456
2466
shell_help (sh );
2457
2467
return SHELL_CMD_HELP_PRINTED ;
@@ -2548,6 +2558,9 @@ static int cmd_wifi_reg_domain(const struct shell *sh, size_t argc,
2548
2558
case 'v' :
2549
2559
verbose = true;
2550
2560
break ;
2561
+ case 'i' :
2562
+ /* Unused, but parsing to avoid unknown option error */
2563
+ break ;
2551
2564
default :
2552
2565
return - ENOEXEC ;
2553
2566
}
@@ -3254,6 +3267,9 @@ static int parse_dpp_args_auth_init(const struct shell *sh, size_t argc, char *a
3254
3267
case 's' :
3255
3268
strncpy (params -> auth_init .ssid , state -> optarg , WIFI_SSID_MAX_LEN );
3256
3269
break ;
3270
+ case 'i' :
3271
+ /* Unused, but parsing to avoid unknown option error */
3272
+ break ;
3257
3273
default :
3258
3274
PR_ERROR ("Invalid option %c\n" , state -> optopt );
3259
3275
return - EINVAL ;
@@ -3291,6 +3307,9 @@ static int parse_dpp_args_chirp(const struct shell *sh, size_t argc, char *argv[
3291
3307
case 'f' :
3292
3308
params -> chirp .freq = shell_strtol (state -> optarg , 10 , & ret );
3293
3309
break ;
3310
+ case 'i' :
3311
+ /* Unused, but parsing to avoid unknown option error */
3312
+ break ;
3294
3313
default :
3295
3314
PR_ERROR ("Invalid option %c\n" , state -> optopt );
3296
3315
return - EINVAL ;
@@ -3328,6 +3347,9 @@ static int parse_dpp_args_listen(const struct shell *sh, size_t argc, char *argv
3328
3347
case 'f' :
3329
3348
params -> listen .freq = shell_strtol (state -> optarg , 10 , & ret );
3330
3349
break ;
3350
+ case 'i' :
3351
+ /* Unused, but parsing to avoid unknown option error */
3352
+ break ;
3331
3353
default :
3332
3354
PR_ERROR ("Invalid option %c\n" , state -> optopt );
3333
3355
return - EINVAL ;
@@ -3374,6 +3396,9 @@ static int parse_dpp_args_btstrap_gen(const struct shell *sh, size_t argc, char
3374
3396
ret = net_bytes_from_str (params -> bootstrap_gen .mac ,
3375
3397
WIFI_MAC_ADDR_LEN , state -> optarg );
3376
3398
break ;
3399
+ case 'i' :
3400
+ /* Unused, but parsing to avoid unknown option error */
3401
+ break ;
3377
3402
default :
3378
3403
PR_ERROR ("Invalid option %c\n" , state -> optopt );
3379
3404
return - EINVAL ;
@@ -3433,6 +3458,9 @@ static int parse_dpp_args_set_config_param(const struct shell *sh, size_t argc,
3433
3458
case 's' :
3434
3459
strncpy (params -> configurator_set .ssid , state -> optarg , WIFI_SSID_MAX_LEN );
3435
3460
break ;
3461
+ case 'i' :
3462
+ /* Unused, but parsing to avoid unknown option error */
3463
+ break ;
3436
3464
default :
3437
3465
PR_ERROR ("Invalid option %c\n" , state -> optopt );
3438
3466
return - EINVAL ;
@@ -3717,6 +3745,9 @@ static int cmd_wifi_dpp_ap_auth_init(const struct shell *sh, size_t argc, char *
3717
3745
case 'p' :
3718
3746
params .auth_init .peer = shell_strtol (state -> optarg , 10 , & ret );
3719
3747
break ;
3748
+ case 'i' :
3749
+ /* Unused, but parsing to avoid unknown option error */
3750
+ break ;
3720
3751
default :
3721
3752
PR_ERROR ("Invalid option %c\n" , state -> optopt );
3722
3753
return - EINVAL ;
0 commit comments