diff options
| author | tangyuxin <[email protected]> | 2018-03-01 09:12:43 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2018-03-01 09:15:32 +0800 |
| commit | 6ceb4554fc74afa4e54c86784168671316fcbeee (patch) | |
| tree | 2a23b9b584e6b1050fcc0a03367736f81b6b11d1 /components | |
| parent | 491a264358f5a56bf80d44a19d779fe06e364ad2 (diff) | |
[Drivers]修复不打开dfs时,wlan驱动编译出错的问题
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/wlan/wlan_cmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/drivers/wlan/wlan_cmd.c b/components/drivers/wlan/wlan_cmd.c index e5c4381dc8..1ff4c5d5f8 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 <cJSON_util.h> #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; |
