1.WiFi适配
This commit is contained in:
parent
e8a1816bfc
commit
3000364201
|
@ -122,6 +122,7 @@ typedef enum
|
||||||
WIFI_TYPE_8189FS,
|
WIFI_TYPE_8189FS,
|
||||||
WIFI_TYPE_HI3881,
|
WIFI_TYPE_HI3881,
|
||||||
WIFI_TYPE_8723DS,
|
WIFI_TYPE_8723DS,
|
||||||
|
WIFI_TYPE_8723DU,
|
||||||
WIFI_TYPE_MAX
|
WIFI_TYPE_MAX
|
||||||
} WIFI_TYPE_E;
|
} WIFI_TYPE_E;
|
||||||
|
|
||||||
|
|
|
@ -885,10 +885,15 @@ void sf_app_Get_Camera_Info(MSG_DEV_INFO_Get_Rsp_T *camInfo)
|
||||||
//printf("[sf_app_Get_Camera_Info],sf_get_iccid\n");
|
//printf("[sf_app_Get_Camera_Info],sf_get_iccid\n");
|
||||||
|
|
||||||
strcpy((char *)camInfo->SimICCID, puiPara->SimIccid);
|
strcpy((char *)camInfo->SimICCID, puiPara->SimIccid);
|
||||||
if(WIFI_TYPE_8189FS == sf_get_wifi_type())
|
if(WIFI_TYPE_8723DU == sf_get_wifi_type())
|
||||||
{
|
{
|
||||||
sf_get_mac_addr(SF_WIFI_NETDEV_8189_NAME, camInfo->WifiMac);
|
sf_get_mac_addr(SF_WIFI_NETDEV_8189_NAME, camInfo->WifiMac);
|
||||||
}else if(WIFI_TYPE_HI3881 == sf_get_wifi_type())
|
}
|
||||||
|
else if(WIFI_TYPE_8189FS == sf_get_wifi_type())
|
||||||
|
{
|
||||||
|
sf_get_mac_addr(SF_WIFI_NETDEV_8189_NAME, camInfo->WifiMac);
|
||||||
|
}
|
||||||
|
else if(WIFI_TYPE_HI3881 == sf_get_wifi_type())
|
||||||
{
|
{
|
||||||
sf_get_mac_addr(SF_WIFI_NETDEV_NAME, camInfo->WifiMac);
|
sf_get_mac_addr(SF_WIFI_NETDEV_NAME, camInfo->WifiMac);
|
||||||
}
|
}
|
||||||
|
@ -2600,8 +2605,9 @@ void sf_get_wifi_ssid(char *ssid)
|
||||||
UINT8 sf_get_wifi_type(void)
|
UINT8 sf_get_wifi_type(void)
|
||||||
{
|
{
|
||||||
static int read_flag = 0;
|
static int read_flag = 0;
|
||||||
static UINT8 wifi_type = WIFI_TYPE_NONE;
|
static UINT8 wifi_type = WIFI_TYPE_8723DU;
|
||||||
|
|
||||||
|
return wifi_type;
|
||||||
if (!read_flag) {
|
if (!read_flag) {
|
||||||
read_flag = 1;
|
read_flag = 1;
|
||||||
char str_content[256]={0};
|
char str_content[256]={0};
|
||||||
|
@ -2702,7 +2708,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_8723DS == wifitype) || (WIFI_TYPE_8189FS == wifitype))
|
if((WIFI_TYPE_8723DU == wifitype) || (WIFI_TYPE_8723DS == wifitype) || (WIFI_TYPE_8189FS == wifitype))
|
||||||
{
|
{
|
||||||
//ret = system("insmod /appfs/8189fs.ko");
|
//ret = system("insmod /appfs/8189fs.ko");
|
||||||
if((WIFI_TYPE_8189FS == wifitype))
|
if((WIFI_TYPE_8189FS == wifitype))
|
||||||
|
@ -2711,7 +2717,7 @@ void sf_wifi_hw_init(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = system("modprobe 8723ds");
|
ret = system("modprobe 8723du");
|
||||||
}
|
}
|
||||||
//sleep(2);
|
//sleep(2);
|
||||||
ret = system("ifconfig lo 127.0.0.1");
|
ret = system("ifconfig lo 127.0.0.1");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user