mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-06 13:33:06 +00:00
rtl8188eu: Remove CONFIG_ADAPTOR_INFO_CACHING_FILE - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
56f36cd3f0
commit
dcefeda1ca
4 changed files with 0 additions and 84 deletions
|
@ -1071,28 +1071,11 @@ void EFUSE_ShadowMapUpdate(
|
|||
EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen, bPseudoTest);
|
||||
|
||||
if (pEEPROM->bautoload_fail_flag == true)
|
||||
{
|
||||
_rtw_memset(pEEPROM->efuse_eeprom_data, 0xFF, mapLen);
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
|
||||
if (_SUCCESS != retriveAdaptorInfoFile(pAdapter->registrypriv.adaptor_info_caching_file_path, pEEPROM)) {
|
||||
#endif
|
||||
|
||||
Efuse_ReadAllMap(pAdapter, efuseType, pEEPROM->efuse_eeprom_data, bPseudoTest);
|
||||
|
||||
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
|
||||
storeAdaptorInfoFile(pAdapter->registrypriv.adaptor_info_caching_file_path, pEEPROM);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* PlatformMoveMemory((void *)&pHalData->EfuseMap[EFUSE_MODIFY_MAP][0], */
|
||||
/* void *)&pHalData->EfuseMap[EFUSE_INIT_MAP][0], mapLen); */
|
||||
}/* EFUSE_ShadowMapUpdate */
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: EFUSE_ShadowRead
|
||||
*
|
||||
|
@ -1199,50 +1182,3 @@ Efuse_InitSomeVar(
|
|||
_rtw_memset((void *)&fakeBTEfuseInitMap[0], 0xff, EFUSE_BT_MAX_MAP_LEN);
|
||||
_rtw_memset((void *)&fakeBTEfuseModifiedMap[0], 0xff, EFUSE_BT_MAX_MAP_LEN);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
|
||||
/* include <rtw_eeprom.h> */
|
||||
|
||||
int isAdaptorInfoFileValid(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
int storeAdaptorInfoFile(char *path, struct eeprom_priv * eeprom_priv)
|
||||
{
|
||||
int ret =_SUCCESS;
|
||||
|
||||
if (path && eeprom_priv) {
|
||||
ret = rtw_store_to_file(path, eeprom_priv->efuse_eeprom_data, EEPROM_MAX_SIZE_512);
|
||||
if (ret == EEPROM_MAX_SIZE)
|
||||
ret = _SUCCESS;
|
||||
else
|
||||
ret = _FAIL;
|
||||
} else {
|
||||
DBG_88E("%s NULL pointer\n",__func__);
|
||||
ret = _FAIL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int retriveAdaptorInfoFile(char *path, struct eeprom_priv * eeprom_priv)
|
||||
{
|
||||
int ret = _SUCCESS;
|
||||
mm_segment_t oldfs;
|
||||
struct file *fp;
|
||||
|
||||
if (path && eeprom_priv) {
|
||||
|
||||
ret = rtw_retrive_from_file(path, eeprom_priv->efuse_eeprom_data, EEPROM_MAX_SIZE);
|
||||
|
||||
if (ret == EEPROM_MAX_SIZE)
|
||||
ret = _SUCCESS;
|
||||
else
|
||||
ret = _FAIL;
|
||||
} else {
|
||||
DBG_88E("%s NULL pointer\n",__func__);
|
||||
ret = _FAIL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_ADAPTOR_INFO_CACHING_FILE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue