Kaynağa Gözat

解决编译不过的问题
RTL8188模组,需要lib80211.ko

guohui 1 yıl önce
ebeveyn
işleme
029a77e570
2 değiştirilmiş dosya ile 3 ekleme ve 9 silme
  1. 1 9
      pro/src/appweb_handle.c
  2. 2 0
      pro/src/wifi.c

+ 1 - 9
pro/src/appweb_handle.c

@@ -3895,15 +3895,7 @@ static void communicationManagement(void *conn)
     else if (strcmp(reqInfo.type, "fourgPZSave") == 0) // 4G网络处理
     {
         _globalCellularManager.mode = reqInfo._4g_wifi_info.Cellular_mode;
-        if (_globalCellularManager.mode)
-        {
-            Cellular_init();
-        }
-        else
-        {
-            thread_stop(THREAD_ID_Cellular);
-        }
-        __globalDeviceManage._globalDevInfo.cell = _globalCellularManager.mode;
+        __globalDeviceManage._globalDevInfo.cell.mode = _globalCellularManager.mode;
         paras_save();
 
         ack_str = ctrl_sts_ack_to_json(); 

+ 2 - 0
pro/src/wifi.c

@@ -723,6 +723,8 @@ int wifi_init(void)
 
     *wm = __globalDeviceManage._globalDevInfo.wifi;
 #ifdef USE_WIFI
+    system("insmod /lib/modules/5.4.61/cfg80211.ko");
+    system("insmod /lib/modules/5.4.61/lib80211.ko");
     r = wifi_set(wm);
 #endif