MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / wifi_ap

Function wifi_ap

components/drivers/wlan/dev_wlan_cmd.c:510–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510static 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
533static int wifi_list_sta(int argc, char *argv[])
534{

Callers

nothing calls this directly

Calls 1

rt_wlan_start_apFunction · 0.85

Tested by

no test coverage detected