From 74759197b0d8ce6c005d12b7fbfd83e49e9fff67 Mon Sep 17 00:00:00 2001 From: MurphyZhao Date: Wed, 1 Nov 2017 19:24:03 +0800 Subject: fix rt_kprintf %s no value problem --- components/drivers/wlan/wlan_cmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components') 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]); } -- cgit v1.3.1 From 9ba62ab5e6b6282f79c0d1b58738b1026bafce75 Mon Sep 17 00:00:00 2001 From: ArdaFu Date: Thu, 2 Nov 2017 15:34:37 +0800 Subject: [components][net] Fix the bug that missing define RT_LWIP_IPADDR/MASKADDR/GWADDR when disable DHCP. --- components/net/KConfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/net/KConfig b/components/net/KConfig index cd758cd33a..b5f50de180 100644 --- a/components/net/KConfig +++ b/components/net/KConfig @@ -55,7 +55,7 @@ config RT_USING_LWIP default n endif - if !RT_LWIP_DHCP + menu "Static IPv4 Address" config RT_LWIP_IPADDR string "IPv4: IP address" default 192.168.1.30 @@ -67,7 +67,7 @@ config RT_USING_LWIP config RT_LWIP_MSKADDR string "IPv4: Mask address" default 255.255.255.0 - endif + endmenu config RT_LWIP_UDP bool "UDP protocol" -- cgit v1.3.1