1.修复无emmc和sd卡无法连接WiFi问题
This commit is contained in:
parent
842d1f1552
commit
6a0a8a9ee4
|
@ -1161,12 +1161,7 @@ SINT32 sf_svr_packet_proc(SINT32 fd, UINT8 *pAppData, UINT16 dataLen)
|
||||||
// HI_MESSAGE_S stMessage;
|
// HI_MESSAGE_S stMessage;
|
||||||
MLOGI(" s\n");
|
MLOGI(" s\n");
|
||||||
|
|
||||||
char *strg_path = sf_get_root_path();
|
char *strg_path = NULL;
|
||||||
if(strg_path == NULL)
|
|
||||||
{
|
|
||||||
free(strg_path);
|
|
||||||
return SF_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
UINT32 dcf_handle = 0; /* 0:emmc 1:sd */
|
UINT32 dcf_handle = 0; /* 0:emmc 1:sd */
|
||||||
//char *dcf_file = System_Get_DCF_Disk_Drive(dcf_handle) == SF_EMMC_DCF_HANDLE ? SF_EMMC_DCF_FILE_NAME : SF_SD_DCF_FILE_NAME;
|
//char *dcf_file = System_Get_DCF_Disk_Drive(dcf_handle) == SF_EMMC_DCF_HANDLE ? SF_EMMC_DCF_FILE_NAME : SF_SD_DCF_FILE_NAME;
|
||||||
|
@ -1966,7 +1961,16 @@ SINT32 sf_svr_packet_proc(SINT32 fd, UINT8 *pAppData, UINT16 dataLen)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf((char *)fileName, "%s%s",strg_path,pMsgStruct->msgBuf.ctrlFileTransfer.fileName);
|
strg_path = sf_get_root_path();
|
||||||
|
if(strg_path == NULL)
|
||||||
|
{
|
||||||
|
free(strg_path);
|
||||||
|
sprintf((char *)fileName, "%s%s",SF_EMMC_ROOT,pMsgStruct->msgBuf.ctrlFileTransfer.fileName);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
sprintf((char *)fileName, "%s%s",strg_path,pMsgStruct->msgBuf.ctrlFileTransfer.fileName);
|
||||||
|
free(strg_path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//MLOGI("rec file cmd:%s\n", fileName);
|
//MLOGI("rec file cmd:%s\n", fileName);
|
||||||
}
|
}
|
||||||
|
@ -2330,7 +2334,6 @@ SINT32 sf_svr_packet_proc(SINT32 fd, UINT8 *pAppData, UINT16 dataLen)
|
||||||
printf("offset=%d\n",offset);
|
printf("offset=%d\n",offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(strg_path);
|
|
||||||
return ntohs(pMsgStruct->cmd);
|
return ntohs(pMsgStruct->cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user