Lines Matching refs:optarg

636 			params->ssid = state->optarg;  in __wifi_args_to_params()
645 params->security = atoi(state->optarg); in __wifi_args_to_params()
651 params->psk = state->optarg; in __wifi_args_to_params()
655 channel = strtol(state->optarg, &endptr, 10); in __wifi_args_to_params()
694 switch (atoi(state->optarg)) { in __wifi_args_to_params()
705 PR_ERROR("Invalid band: %d\n", atoi(state->optarg)); in __wifi_args_to_params()
717 params->mfp = atoi(state->optarg); in __wifi_args_to_params()
721 state->optarg) < 0) { in __wifi_args_to_params()
728 params->timeout = strtol(state->optarg, &endptr, 10); in __wifi_args_to_params()
730 PR_ERROR("Invalid timeout: %s\n", state->optarg); in __wifi_args_to_params()
736 params->anon_id = state->optarg; in __wifi_args_to_params()
746 switch (atoi(state->optarg)) { in __wifi_args_to_params()
757 PR_ERROR("Invalid bandwidth: %d\n", atoi(state->optarg)); in __wifi_args_to_params()
769 params->key_passwd = state->optarg; in __wifi_args_to_params()
777 params->key2_passwd = state->optarg; in __wifi_args_to_params()
788 params->suiteb_type = atoi(state->optarg); in __wifi_args_to_params()
791 params->TLS_cipher = atoi(state->optarg); in __wifi_args_to_params()
794 params->eap_ver = atoi(state->optarg); in __wifi_args_to_params()
807 params->eap_identity = state->optarg; in __wifi_args_to_params()
810 params->identities[params->nusers] = state->optarg; in __wifi_args_to_params()
825 params->eap_password = state->optarg; in __wifi_args_to_params()
828 params->passwords[params->passwds] = state->optarg; in __wifi_args_to_params()
840 params->ignore_broadcast_ssid = shell_strtol(state->optarg, 10, &ret); in __wifi_args_to_params()
994 if (!strncasecmp(state->optarg, "passive", 7)) { in wifi_scan_args_to_params()
996 } else if (!strncasecmp(state->optarg, "active", 6)) { in wifi_scan_args_to_params()
999 PR_ERROR("Invalid scan type %s\n", state->optarg); in wifi_scan_args_to_params()
1006 if (wifi_utils_parse_scan_bands(state->optarg, &params->bands)) { in wifi_scan_args_to_params()
1014 val = atoi(state->optarg); in wifi_scan_args_to_params()
1025 val = atoi(state->optarg); in wifi_scan_args_to_params()
1036 if (wifi_utils_parse_scan_ssids(state->optarg, in wifi_scan_args_to_params()
1046 val = atoi(state->optarg); in wifi_scan_args_to_params()
1057 if (wifi_utils_parse_scan_chan(state->optarg, in wifi_scan_args_to_params()
1666 if (!parse_number(sh, &value, state->optarg, NULL, in twt_args_to_params()
1675 if (!parse_number(sh, &value, state->optarg, NULL, in twt_args_to_params()
1684 if (!parse_number(sh, &value, state->optarg, NULL, 1, 255)) { in twt_args_to_params()
1691 if (!parse_number(sh, &value, state->optarg, NULL, 0, in twt_args_to_params()
1699 if (!parse_number(sh, &value, state->optarg, NULL, 0, 1)) { in twt_args_to_params()
1706 if (!parse_number(sh, &value, state->optarg, NULL, 0, 1)) { in twt_args_to_params()
1713 if (!parse_number(sh, &value, state->optarg, NULL, 0, 1)) { in twt_args_to_params()
1720 if (!parse_number(sh, &value, state->optarg, NULL, 0, 1)) { in twt_args_to_params()
1727 if (!parse_number(sh, &value, state->optarg, NULL, 1, in twt_args_to_params()
1735 if (!parse_number(sh, &value, state->optarg, NULL, 1, in twt_args_to_params()
1743 if (!parse_number(sh, &value, state->optarg, NULL, 0, in twt_args_to_params()
1751 if (!parse_number(sh, &value, state->optarg, NULL, 0, 1)) { in twt_args_to_params()
1758 if (!parse_number(sh, &value, state->optarg, NULL, 0, in twt_args_to_params()
1766 if (!parse_number(sh, &value, state->optarg, NULL, 0, 0xFFFF)) { in twt_args_to_params()
2051 if (!parse_number(sh, &val, state->optarg, "max_inactivity", in wifi_ap_config_args_to_params()
2059 if (!parse_number(sh, &val, state->optarg, "max_num_sta", in wifi_ap_config_args_to_params()
2068 strncpy(params->ht_capab, state->optarg, WIFI_AP_IEEE_80211_CAPAB_MAX_LEN); in wifi_ap_config_args_to_params()
2072 strncpy(params->vht_capab, state->optarg, WIFI_AP_IEEE_80211_CAPAB_MAX_LEN); in wifi_ap_config_args_to_params()
2554 mode->if_index = (uint8_t)atoi(state->optarg); in parse_mode_args_to_params()
2638 channel->channel = (uint16_t)atoi(state->optarg); in parse_channel_args_to_params()
2641 channel->if_index = (uint8_t)atoi(state->optarg); in parse_channel_args_to_params()
2752 filter->if_index = (uint8_t)atoi(state->optarg); in parse_filter_args_to_params()
2755 filter->buffer_size = (uint16_t)atoi(state->optarg); in parse_filter_args_to_params()
2867 params->auth_init.peer = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_auth_init()
2870 params->auth_init.role = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_auth_init()
2873 params->auth_init.configurator = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_auth_init()
2876 params->auth_init.conf = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_auth_init()
2879 strncpy(params->auth_init.ssid, state->optarg, WIFI_SSID_MAX_LEN); in parse_dpp_args_auth_init()
2912 params->chirp.id = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_chirp()
2915 params->chirp.freq = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_chirp()
2948 params->listen.role = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_listen()
2951 params->listen.freq = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_listen()
2986 params->bootstrap_gen.type = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_btstrap_gen()
2989 params->bootstrap_gen.op_class = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_btstrap_gen()
2992 params->bootstrap_gen.chan = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_btstrap_gen()
2996 WIFI_MAC_ADDR_LEN, state->optarg); in parse_dpp_args_btstrap_gen()
3048 shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_set_config_param()
3051 params->configurator_set.conf = shell_strtol(state->optarg, 10, &ret); in parse_dpp_args_set_config_param()
3054 strncpy(params->configurator_set.ssid, state->optarg, WIFI_SSID_MAX_LEN); in parse_dpp_args_set_config_param()
3337 params.auth_init.peer = shell_strtol(state->optarg, 10, &ret); in cmd_wifi_dpp_ap_auth_init()