Changeset 3b47db6 in mainline for uspace/app/wifi_supplicant/wifi_supplicant.c
- Timestamp:
- 2018-01-04T20:50:53Z (6 years ago)
- Children:
- 58e4d85
- Parents:
- c81d4f1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wifi_supplicant/wifi_supplicant.c
rc81d4f1 r3b47db6 293 293 if (argc == 2) { 294 294 if (!str_cmp(argv[1], "list")) 295 return EXIT_RC(wifi_list());295 return wifi_list(); 296 296 } else if (argc > 2) { 297 297 uint32_t index; … … 300 300 printf("%s: Invalid argument.\n", NAME); 301 301 print_syntax(); 302 return E XIT_RC(EINVAL);302 return EINVAL; 303 303 } 304 304 … … 309 309 now = true; 310 310 311 return EXIT_RC(wifi_scan(index, now));311 return wifi_scan(index, now); 312 312 } else if (!str_cmp(argv[1], "connect")) { 313 313 char *pass = NULL; … … 316 316 pass = argv[4]; 317 317 318 return EXIT_RC(wifi_connect(index, argv[3], pass));318 return wifi_connect(index, argv[3], pass); 319 319 } 320 320 } else if (!str_cmp(argv[1], "disconnect")) 321 return EXIT_RC(wifi_disconnect(index));321 return wifi_disconnect(index); 322 322 } 323 323
Note:
See TracChangeset
for help on using the changeset viewer.