Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 51) sorted by relevance

123

/hostap-3.7.0/wpa_supplicant/
Dwpa_cli_cmds.c40 int argc, char *argv[]) in wpa_cli_cmd() argument
46 for (int i = 0; i < argc; i++) { in wpa_cli_cmd()
50 argc--; in wpa_cli_cmd()
55 if (argc < min_args) { in wpa_cli_cmd()
62 if (write_cmd(buf, CMD_BUF_LEN, cmd, argc, argv) < 0){ in wpa_cli_cmd()
203 static int wpa_cli_cmd_set_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_set_network() argument
206 if (argc == 0) { in wpa_cli_cmd_set_network()
211 if (argc < 3) { in wpa_cli_cmd_set_network()
217 return wpa_cli_cmd(ctrl, "SET_NETWORK", 3, argc, argv); in wpa_cli_cmd_set_network()
221 static int wpa_cli_cmd_get_network(struct wpa_ctrl *ctrl, int argc, in wpa_cli_cmd_get_network() argument
[all …]
Dwpa_cli.c312 int argc, char *argv[]) in wpa_cli_cmd() argument
316 if (argc < min_args) { in wpa_cli_cmd()
328 if (write_cmd(buf, CMD_BUF_LEN, cmd, argc-1, argv) < 0){ in wpa_cli_cmd()
343 static int wpa_cli_cmd_ifname(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ifname() argument
349 static int wpa_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_status() argument
351 if (argc > 0 && os_strcmp(argv[0], "verbose") == 0) in wpa_cli_cmd_status()
353 if (argc > 0 && os_strcmp(argv[0], "wps") == 0) in wpa_cli_cmd_status()
355 if (argc > 0 && os_strcmp(argv[0], "driver") == 0) in wpa_cli_cmd_status()
358 if (argc > 0 && os_strcmp(argv[0], "no_events") == 0) in wpa_cli_cmd_status()
365 static int wpa_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ping() argument
[all …]
Dwpa_cli_zephyr.c324 char supp_make_argv(size_t *argc, const char **argv, char *cmd, in supp_make_argv() argument
330 *argc = 0; in supp_make_argv()
342 argv[(*argc)++] = cmd; in supp_make_argv()
343 if (*argc == max_argc) { in supp_make_argv()
402 int zephyr_wpa_ctrl_zephyr_cmd(int argc, const char *argv[]) in zephyr_wpa_ctrl_zephyr_cmd() argument
404 return wpa_request(ctrl_conn, argc , (char **) argv); in zephyr_wpa_ctrl_zephyr_cmd()
410 int argc; in zephyr_wpa_cli_cmd_v() local
418 (void)supp_make_argv(&argc, &argv[0], cmd, MAX_ARGS); in zephyr_wpa_cli_cmd_v()
420 wpa_printf(MSG_DEBUG, "Calling wpa_cli: %s, argc: %d", cmd, argc); in zephyr_wpa_cli_cmd_v()
421 for (int i = 0; i < argc; i++) in zephyr_wpa_cli_cmd_v()
[all …]
Dwpa_passphrase.c15 int main(int argc, char *argv[]) in main() argument
22 if (argc < 2) { in main()
31 if (argc > 2) { in main()
Dwpa_cli_zephyr.h31 int zephyr_wpa_ctrl_zephyr_cmd(int argc, const char *argv[]);
42 int zephyr_wpa_global_ctrl_zephyr_cmd(int argc, const char *argv[]);
Dmain_winsvc.c362 static void WINAPI service_start(DWORD argc, LPTSTR *argv) in service_start() argument
415 int main(int argc, char *argv[]) in main() argument
422 if (argc > 1) { in main()
427 if (argc < 3) { in main()
Dmain.c181 int main(int argc, char *argv[]) in main() argument
203 c = getopt(argc, argv, in main()
Dlibwpa_test.c13 int main(int argc, char *argv[]) in main() argument
/hostap-3.7.0/hostapd/
Dhostapd_cli.c228 int min_args, int argc, char *argv[]) in hostapd_cli_cmd() argument
232 if (argc < min_args) { in hostapd_cli_cmd()
237 if (write_cmd(buf, sizeof(buf), cmd, argc, argv) < 0) in hostapd_cli_cmd()
243 static int hostapd_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_ping() argument
249 static int hostapd_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_relog() argument
255 static int hostapd_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_status() argument
257 if (argc > 0 && os_strcmp(argv[0], "driver") == 0) in hostapd_cli_cmd_status()
263 static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_mib() argument
265 if (argc > 0) { in hostapd_cli_cmd_mib()
310 static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_sta() argument
[all …]
Dnt_password_hash.c15 int main(int argc, char *argv[]) in main() argument
21 if (argc > 1) in main()
Dsae_pk_gen.c17 int main(int argc, char *argv[]) in main() argument
42 if (argc != 4) { in main()
/hostap-3.7.0/wlantest/
Dwlantest_cli.c213 static int cmd_ping(int s, int argc, char *argv[]) in cmd_ping() argument
222 static int cmd_terminate(int s, int argc, char *argv[]) in cmd_terminate() argument
228 static int cmd_list_bss(int s, int argc, char *argv[]) in cmd_list_bss() argument
253 static int cmd_list_sta(int s, int argc, char *argv[]) in cmd_list_sta() argument
261 if (argc < 1) { in cmd_list_sta()
303 static int cmd_flush(int s, int argc, char *argv[]) in cmd_flush() argument
309 static int cmd_clear_sta_counters(int s, int argc, char *argv[]) in cmd_clear_sta_counters() argument
315 if (argc < 2) { in cmd_clear_sta_counters()
373 static int cmd_clear_bss_counters(int s, int argc, char *argv[]) in cmd_clear_bss_counters() argument
379 if (argc < 1) { in cmd_clear_bss_counters()
[all …]
/hostap-3.7.0/wpa_supplicant/wpa_gui-qt4/
Dmain.cpp17 WpaGuiApp::WpaGuiApp(int &argc, char **argv) : in WpaGuiApp() argument
18 QApplication(argc, argv), in WpaGuiApp()
19 argc(argc), in WpaGuiApp()
34 int main(int argc, char *argv[]) in main() argument
36 WpaGuiApp app(argc, argv); in main()
Dwpagui.h23 WpaGuiApp(int &argc, char **argv);
30 int argc; variable
/hostap-3.7.0/src/common/
Dcli.c211 int write_cmd(char *buf, size_t buflen, const char *cmd, int argc, char *argv[]) in write_cmd() argument
224 for (i = 0; i < argc; i++) { in write_cmd()
243 int argc = 0; in tokenize_cmd() local
251 argv[argc] = pos; in tokenize_cmd()
252 argc++; in tokenize_cmd()
253 if (argc == max_args) in tokenize_cmd()
266 return argc; in tokenize_cmd()
/hostap-3.7.0/tests/
Dtest-x509v3.c16 int main(int argc, char *argv[]) in main() argument
26 if (argc < 3 || strcmp(argv[1], "-v") != 0) { in main()
31 for (i = 2; i < argc; i++) { in main()
Dtest-rsa-sig-ver.c187 int main(int argc, char *argv[]) in main() argument
195 for (i = 1; i < argc; i++) { in main()
200 if (argc < 2 && cavp_rsa_sig_ver("CAVP/SigVer15_186-3.rsp")) in main()
202 if (argc < 2 && cavp_rsa_sig_ver("CAVP/SigVer15EMTest.txt")) in main()
Dtest-base64.c13 int main(int argc, char *argv[]) in main() argument
19 if (argc != 4) { in main()
Dtest-aes.c607 int main(int argc, char *argv[]) in main() argument
611 if (argc >= 3 && os_strcmp(argv[1], "NIST-KW-AE") == 0) in main()
613 else if (argc >= 3 && os_strcmp(argv[1], "NIST-KW-AD") == 0) in main()
Dtest-https.c184 int main(int argc, char *argv[]) in main() argument
192 if (argc < 4) { in main()
/hostap-3.7.0/tests/fuzzing/
Dfuzzer-common.c36 int main(int argc, char *argv[]) in main() argument
41 if (argc < 2) { in main()
/hostap-3.7.0/hs20/client/
Dosu_client.c3184 int main(int argc, char *argv[]) in main() argument
3201 c = getopt(argc, argv, "df:hKNo:O:qr:s:S:tTw:x:"); in main()
3255 if (argc - optind < 1) { in main()
3273 if (argc - optind < 2) { in main()
3278 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3281 if (argc - optind < 2) { in main()
3286 argc > optind + 3 ? argv[optind + 3] : NULL, in main()
3289 if (argc - optind < 2) { in main()
3295 if (argc - optind < 2) { in main()
3300 argc > optind + 2 ? argv[optind + 2] : NULL, in main()
[all …]
/hostap-3.7.0/src/ap/
Deap_user_db.c79 static int get_user_cb(void *ctx, int argc, char *argv[], char *col[]) in get_user_cb() argument
84 for (i = 0; i < argc; i++) { in get_user_cb()
103 static int get_wildcard_cb(void *ctx, int argc, char *argv[], char *col[]) in get_wildcard_cb() argument
109 for (i = 0; i < argc; i++) { in get_wildcard_cb()
/hostap-3.7.0/hs20/server/
Dhs20_spp_server.c155 int main(int argc, char *argv[]) in main() argument
162 int c = getopt(argc, argv, "f:r:v"); in main()
/hostap-3.7.0/eap_example/
Deap_example.c26 int main(int argc, char *argv[]) in main() argument

123