| 508 | } |
| 509 | |
| 510 | static int wifi_ap(int argc, char *argv[]) |
| 511 | { |
| 512 | const char *ssid = RT_NULL; |
| 513 | const char *key = RT_NULL; |
| 514 | |
| 515 | if (argc == 3) |
| 516 | { |
| 517 | ssid = argv[2]; |
| 518 | } |
| 519 | else if (argc == 4) |
| 520 | { |
| 521 | ssid = argv[2]; |
| 522 | key = argv[3]; |
| 523 | } |
| 524 | else |
| 525 | { |
| 526 | return -1; |
| 527 | } |
| 528 | |
| 529 | rt_wlan_start_ap(ssid, key); |
| 530 | return 0; |
| 531 | } |
| 532 | |
| 533 | static int wifi_list_sta(int argc, char *argv[]) |
| 534 | { |
nothing calls this directly
no test coverage detected