diff --git a/components/drivers/wlan/wlan_cmd.c b/components/drivers/wlan/wlan_cmd.c index e5c4381dc8e65d4bb5320fdeae5ba05895914106..1ff4c5d5f86648109aa5406606f334fb8f9e0481 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;