1.修改wifi;2.去除编译警告

This commit is contained in:
payton 2023-09-26 18:02:34 +08:00
parent 2c2e9641e8
commit 090ed9fed8
3 changed files with 10 additions and 5 deletions

View File

@ -121,7 +121,7 @@ typedef enum
WIFI_TYPE_NONE = 0, WIFI_TYPE_NONE = 0,
WIFI_TYPE_8189FS, WIFI_TYPE_8189FS,
WIFI_TYPE_HI3881, WIFI_TYPE_HI3881,
WIFI_TYPE_8723DS,
WIFI_TYPE_MAX WIFI_TYPE_MAX
} WIFI_TYPE_E; } WIFI_TYPE_E;

View File

@ -57,6 +57,7 @@
#include "Mode/UIModeMovie.h" #include "Mode/UIModeMovie.h"
#include "sf_log.h" #include "sf_log.h"
#include "DCF.h" #include "DCF.h"
#include "sf_message_queue.h"
#if 0//SF_LPA_SDK #if 0//SF_LPA_SDK
#include "lpasdk/api/lpasdk_api.h" #include "lpasdk/api/lpasdk_api.h"
#include "sf_4g_lpa.h" #include "sf_4g_lpa.h"
@ -2146,7 +2147,7 @@ void appSvrResponseSocketSet(SINT32 socket)
gSendSocket = socket; gSendSocket = socket;
} }
SINT32 appSvrResponseSocketGet( ) SINT32 appSvrResponseSocketGet(void)
{ {
//printf("appSvrResponseSocketSet socket=%d\n", socket); //printf("appSvrResponseSocketSet socket=%d\n", socket);
return gSendSocket; return gSendSocket;
@ -2574,6 +2575,10 @@ UINT8 sf_get_wifi_type(void)
{ {
wifi_type = WIFI_TYPE_HI3881; wifi_type = WIFI_TYPE_HI3881;
} }
else if(strstr(str_content, "024C:D723") != NULL)
{
wifi_type = WIFI_TYPE_8723DS;
}
} }
@ -2627,7 +2632,7 @@ void sf_wifi_hw_init(void)
unsigned char wifitype = sf_get_wifi_type(); unsigned char wifitype = sf_get_wifi_type();
//ret = system("modprobe cfg80211"); //ret = system("modprobe cfg80211");
if(WIFI_TYPE_8189FS == wifitype) if((WIFI_TYPE_8723DS == wifitype) || (WIFI_TYPE_8189FS == wifitype))
{ {
//ret = system("insmod /appfs/8189fs.ko"); //ret = system("insmod /appfs/8189fs.ko");

View File

@ -128,6 +128,6 @@ UINT8 sf_get_ui_para_flag(void);
BOOL sf_cmd_ftp_ota(unsigned char argc, char **argv); BOOL sf_cmd_ftp_ota(unsigned char argc, char **argv);
BOOL sf_cmd_switch_esim(unsigned char argc, char **argv); BOOL sf_cmd_switch_esim(unsigned char argc, char **argv);
void sf_set_debug_mode(void); void sf_set_debug_mode(void);
void sf_set_wifi_socket(int fd);
int sf_get_wifi_socket(void);
#endif #endif