diff options
| author | MurphyZhao <[email protected]> | 2017-11-01 19:24:03 +0800 |
|---|---|---|
| committer | MurphyZhao <[email protected]> | 2017-11-01 19:47:37 +0800 |
| commit | 74759197b0d8ce6c005d12b7fbfd83e49e9fff67 (patch) | |
| tree | 0b8cd356a1629b65ab6e9b5b15aacf8c4ae49cf9 | |
| parent | 6c28a6e879b36f945a706c214373d7a3218596ac (diff) | |
fix rt_kprintf %s no value problem
| -rw-r--r-- | components/drivers/wlan/wlan_cmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/drivers/wlan/wlan_cmd.c b/components/drivers/wlan/wlan_cmd.c index 21afd7020a..2ff0db903d 100644 --- a/components/drivers/wlan/wlan_cmd.c +++ b/components/drivers/wlan/wlan_cmd.c @@ -404,7 +404,7 @@ int wifi(int argc, char** argv) wlan = (struct rt_wlan_device*)rt_device_find(argv[1]); if (!wlan) { - rt_kprintf("no wlan:%s device\n"); + rt_kprintf("no wlan:%s device\n", argv[1]); return 0; } @@ -480,6 +480,7 @@ int wifi(int argc, char** argv) rt_wlan_info_init(info, WIFI_AP, SECURITY_OPEN, argv[3]); info->channel = 11; + result =rt_wlan_init(wlan, WIFI_AP); /* start soft ap */ result = rt_wlan_softap(wlan, info, NULL); } @@ -489,6 +490,7 @@ int wifi(int argc, char** argv) rt_wlan_info_init(info, WIFI_AP, SECURITY_WPA2_AES_PSK, argv[3]); info->channel = 11; + result =rt_wlan_init(wlan, WIFI_AP); /* start soft ap */ result = rt_wlan_softap(wlan, info, argv[4]); } |
