From 6ceb4554fc74afa4e54c86784168671316fcbeee Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Thu, 1 Mar 2018 09:12:43 +0800 Subject: [PATCH] =?UTF-8?q?[Drivers]=E4=BF=AE=E5=A4=8D=E4=B8=8D=E6=89=93?= =?UTF-8?q?=E5=BC=80dfs=E6=97=B6=EF=BC=8Cwlan=E9=A9=B1=E5=8A=A8=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/wlan/wlan_cmd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/drivers/wlan/wlan_cmd.c b/components/drivers/wlan/wlan_cmd.c index e5c4381dc..1ff4c5d5f 100644 --- a/components/drivers/wlan/wlan_cmd.c +++ b/components/drivers/wlan/wlan_cmd.c @@ -36,6 +36,9 @@ #endif struct rt_wlan_info info; +static char wifi_ssid[32] = {0}; +static char wifi_key[32] = {0}; +static int network_mode = WIFI_STATION; #ifndef WIFI_SETTING_FN #define WIFI_SETTING_FN "/appfs/setting.json" @@ -54,10 +57,6 @@ struct rt_wlan_info info; #include #endif -static char wifi_ssid[32] = {0}; -static char wifi_key[32] = {0}; -static int network_mode = WIFI_STATION; - int wifi_get_mode(void) { return network_mode; -- GitLab