소스 검색

Merge pull request #1240 from enkiller/development

[Drivers]修复不打开dfs时,wlan驱动编译出错的问题
Bernard Xiong 7 년 전
부모
커밋
ef668bc3aa
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      components/drivers/wlan/wlan_cmd.c

+ 3 - 4
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;